mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-05 22:37:42 +02:00
Clarify includes and open tags.
If it's not PHP, it doesn't need the open tag.
This commit is contained in:
@@ -379,7 +379,7 @@ echo $function_name(1, 2); // => 3
|
|||||||
```
|
```
|
||||||
```php
|
```php
|
||||||
<?php
|
<?php
|
||||||
// Included files must also begin with a PHP open tags.
|
// PHP within included files must also begin with a PHP open tag.
|
||||||
|
|
||||||
include 'my-file.php';
|
include 'my-file.php';
|
||||||
// The code in my-file.php is now available in the current scope.
|
// The code in my-file.php is now available in the current scope.
|
||||||
|
Reference in New Issue
Block a user