mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-03-19 06:49:50 +01:00
Fix code highlighting
This commit is contained in:
parent
98f400afc8
commit
3da8c930ed
10
readme.md
10
readme.md
@ -372,10 +372,12 @@ echo $faker->name; // 'Jess Mraz I';
|
||||
|
||||
> **Tip**: DateTime formatters won't reproduce the same fake data if you don't fix the `$max` value:
|
||||
>
|
||||
> // even when seeded, this line will return different results because $max varies
|
||||
> $faker->dateTime(); // equivalent to $faker->dateTime($max = 'now')
|
||||
> // make sure you fix the $max parameter
|
||||
> $faker->dateTime('2014-02-25 08:37:17'); // will return always the same date when seeded
|
||||
> ```php
|
||||
> <?php
|
||||
> // even when seeded, this line will return different results because $max varies
|
||||
> $faker->dateTime(); // equivalent to $faker->dateTime($max = 'now')
|
||||
> // make sure you fix the $max parameter
|
||||
> $faker->dateTime('2014-02-25 08:37:17'); // will return always the same date when seeded
|
||||
|
||||
## Faker Internals: Understanding Providers
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user