<?php
use Faker\Factory;
$faker = Factory::create('it_IT');
dump(
// name and address from locale
$faker->name,
$faker->address,
$faker->dateTime,
// with optional(), it may return null
$faker->optional(0.5, null)->colorName
);
echo sprintf(
'<img src="%s">',
$faker->imageUrl(320, 240, 'animals')
);
^ "Hector Damico"
^ """
Borgo Ferri 7 Appartamento 23\n
Vitalba del friuli, 23588 Vicenza (CB)
"""
^ DateTime @839405907 {#1412
: 1996-08-07 10:18:27.0 Europe/Berlin (+02:00)
}
^ null