<?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')
);
^ "Anselmo Rizzi"
^ """
Incrocio Pericle 30\n
Sesto Mariapia, 07958 Cuneo (CB)
"""
^ DateTime @1420333857 {#1412
: 2015-01-04 02:10:57.0 Europe/Berlin (+01:00)
}
^ null