Skip to content

Commit 2e49b3b

Browse files
authored
docs: Fixing typo on PHP sample (#8566)
1 parent f830c47 commit 2e49b3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/languages/php.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function). Then you can read a FlatBuffer binary file, which you
4848
pass the contents of to the `GetRootAsMonster` function:
4949

5050
~~~{.php}
51-
// It is recommended that your use PSR autoload when using FlatBuffers in PHP.
51+
// It is recommended that you use PSR autoload when using FlatBuffers in PHP.
5252
// Here is an example:
5353
function __autoload($class_name) {
5454
// The last segment of the class name matches the file name.
@@ -69,7 +69,7 @@ pass the contents of to the `GetRootAsMonster` function:
6969
// Read the contents of the FlatBuffer binary file.
7070
$filename = "monster.dat";
7171
$handle = fopen($filename, "rb");
72-
$contents = $fread($handle, filesize($filename));
72+
$contents = fread($handle, filesize($filename));
7373
fclose($handle);
7474
7575
// Pass the contents to `GetRootAsMonster`.

0 commit comments

Comments
 (0)