mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-03-22 00:09:59 +01:00
Merge pull request #242 from bateller/patch-1
Put XML opening tag in php echo statement
This commit is contained in:
commit
cc7f4bc025
@ -3,8 +3,9 @@ require __DIR__ .'/../vendor/autoload.php';
|
||||
|
||||
$faker = Faker\Factory::create();
|
||||
$faker->seed(5);
|
||||
|
||||
echo '<?xml version="1.0" encoding="UTF-8"?>';
|
||||
?>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<contacts>
|
||||
<?php for ($i=0; $i < 10; $i++): ?>
|
||||
<contact firstName="<?php echo $faker->firstName ?>" lastName="<?php echo $faker->lastName ?>" email="<?php echo $faker->email ?>"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user