<?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')
);
^ "Giulietta Giuliani"
^ """
Rotonda Gallo 855\n
Arturo ligure, 88613 Bolzano (PI)
"""
^ DateTime @1163297410 {#1412
: 2006-11-12 03:10:10.0 Europe/Berlin (+01:00)
}
^ "IndianRed"