From c7bdada5d12e6dc758c6745a9a8f9db4f6f83307 Mon Sep 17 00:00:00 2001 From: Francois Zaninotto Date: Sun, 16 Oct 2011 22:12:34 +0200 Subject: [PATCH] Documentation clarification --- readme.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 735c55e1..bf40170f 100644 --- a/readme.md +++ b/readme.md @@ -32,7 +32,24 @@ echo $faker->lorem; // Et sint et. Ut ducimus quod nemo ab voluptatum. ``` -**Tip**: Even if this example shows a property access, each call to `$faker->name` yields a different (random) result. This is because Faker uses `__get()` magic, and forwards `Faker\Generator->$property` calls to `Faker\Generator->format($property)`. +Even if this example shows a property access, each call to `$faker->name` yields a different (random) result. This is because Faker uses `__get()` magic, and forwards `Faker\Generator->$property` calls to `Faker\Generator->format($property)`. + +```php +name, "\n"; +} + // Adaline Reichel + // Dr. Santa Prosacco DVM + // Noemy Vandervort V + // Lexi O'Conner + // Gracie Weber + // Roscoe Johns + // Emmett Lebsack + // Keegan Thiel + // Wellington Koelpin II + // Ms. Karley Kiehn V +``` ## Formatters @@ -122,6 +139,7 @@ Each of the generator properties (like `name`, `address`, and `lorem`) are calle `Faker\Factory` can take a locale as an argument, to return localized data. If no localized provider is found, the factory fallbacks to the default locale. ```php +name; // 'Jean Dupont' ```