mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-06 14:19:23 +08:00
[doc] Update PHP doc links (#18957)
* Replace https://secure.php.net with https://www.php.net * Replace http://www.php.net with https://www.php.net
This commit is contained in:
@ -189,7 +189,7 @@ JS
|
||||
```
|
||||
|
||||
The above example code uses PHP
|
||||
[Heredoc syntax](https://secure.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc) for better readability. This also enables better syntax highlighting in most IDEs so it is the
|
||||
[Heredoc syntax](https://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc) for better readability. This also enables better syntax highlighting in most IDEs so it is the
|
||||
preferred way of writing inline JavaScript, especially useful for code that is longer than a single line. The variable `$message` is created in PHP and
|
||||
thanks to [[yii\helpers\Json::htmlEncode|Json::htmlEncode]] it contains the
|
||||
string in valid JS syntax, which can be inserted into the JavaScript code to place the dynamic string in the function call to `alert()`.
|
||||
|
Reference in New Issue
Block a user