mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 06:11:35 +08:00
Update to https protocol for php.net links (#17168) [skip ci]
* Updated php.net link for some MemCache properties [skip ci] * Changed protocol to https for links to php.net in comments * Changed protocol to https for links to php.net in code * Changed www.php.net (http) to secure.php.net (https) in comments * Changed www.php.net (http) to secure.php.net (https) in code * Changed protocol to https for links to php.net in UPGRADE.md * Changed protocol to https for links to pecl.php.net in comments * Changed us.php.net to secure.php.net (https) in comments * Changed protocol to https for links to php.net in docs * Changed www.php.net (http) to secure.php.net (https) in docs * Changed protocol to https for links to pecl.php.net in docs * Changed ru/jp.php.net to secure.php.net (https) in docs Don't sure about russian guide: is this links meant to be for guide on russian, or not?
This commit is contained in:

committed by
Alexander Makarov

parent
8cc74f5c57
commit
bdb7c64910
@ -601,7 +601,7 @@ class BaseArrayHelper
|
||||
{
|
||||
if ($caseSensitive) {
|
||||
// Function `isset` checks key faster but skips `null`, `array_key_exists` handles this case
|
||||
// http://php.net/manual/en/function.array-key-exists.php#107786
|
||||
// https://secure.php.net/manual/en/function.array-key-exists.php#107786
|
||||
return isset($array[$key]) || array_key_exists($key, $array);
|
||||
}
|
||||
|
||||
@ -625,7 +625,7 @@ class BaseArrayHelper
|
||||
* When sorting by multiple keys with different sorting directions, use an array of sorting directions.
|
||||
* @param int|array $sortFlag the PHP sort flag. Valid values include
|
||||
* `SORT_REGULAR`, `SORT_NUMERIC`, `SORT_STRING`, `SORT_LOCALE_STRING`, `SORT_NATURAL` and `SORT_FLAG_CASE`.
|
||||
* Please refer to [PHP manual](http://php.net/manual/en/function.sort.php)
|
||||
* Please refer to [PHP manual](https://secure.php.net/manual/en/function.sort.php)
|
||||
* for more details. When sorting by multiple keys with different sort flags, use an array of sort flags.
|
||||
* @throws InvalidArgumentException if the $direction or $sortFlag parameters do not have
|
||||
* correct number of elements as that of $key.
|
||||
@ -676,7 +676,7 @@ class BaseArrayHelper
|
||||
* @param string $charset the charset that the data is using. If not set,
|
||||
* [[\yii\base\Application::charset]] will be used.
|
||||
* @return array the encoded data
|
||||
* @see http://www.php.net/manual/en/function.htmlspecialchars.php
|
||||
* @see https://secure.php.net/manual/en/function.htmlspecialchars.php
|
||||
*/
|
||||
public static function htmlEncode($data, $valuesOnly = true, $charset = null)
|
||||
{
|
||||
@ -709,7 +709,7 @@ class BaseArrayHelper
|
||||
* @param bool $valuesOnly whether to decode array values only. If false,
|
||||
* both the array keys and array values will be decoded.
|
||||
* @return array the decoded data
|
||||
* @see http://www.php.net/manual/en/function.htmlspecialchars-decode.php
|
||||
* @see https://secure.php.net/manual/en/function.htmlspecialchars-decode.php
|
||||
*/
|
||||
public static function htmlDecode($data, $valuesOnly = true)
|
||||
{
|
||||
@ -807,14 +807,14 @@ class BaseArrayHelper
|
||||
/**
|
||||
* Check whether an array or [[\Traversable]] contains an element.
|
||||
*
|
||||
* This method does the same as the PHP function [in_array()](http://php.net/manual/en/function.in-array.php)
|
||||
* This method does the same as the PHP function [in_array()](https://secure.php.net/manual/en/function.in-array.php)
|
||||
* but additionally works for objects that implement the [[\Traversable]] interface.
|
||||
* @param mixed $needle The value to look for.
|
||||
* @param array|\Traversable $haystack The set of values to search.
|
||||
* @param bool $strict Whether to enable strict (`===`) comparison.
|
||||
* @return bool `true` if `$needle` was found in `$haystack`, `false` otherwise.
|
||||
* @throws InvalidArgumentException if `$haystack` is neither traversable nor an array.
|
||||
* @see http://php.net/manual/en/function.in-array.php
|
||||
* @see https://secure.php.net/manual/en/function.in-array.php
|
||||
* @since 2.0.7
|
||||
*/
|
||||
public static function isIn($needle, $haystack, $strict = false)
|
||||
@ -837,11 +837,11 @@ class BaseArrayHelper
|
||||
/**
|
||||
* Checks whether a variable is an array or [[\Traversable]].
|
||||
*
|
||||
* This method does the same as the PHP function [is_array()](http://php.net/manual/en/function.is-array.php)
|
||||
* This method does the same as the PHP function [is_array()](https://secure.php.net/manual/en/function.is-array.php)
|
||||
* but additionally works on objects that implement the [[\Traversable]] interface.
|
||||
* @param mixed $var The variable being evaluated.
|
||||
* @return bool whether $var is array-like
|
||||
* @see http://php.net/manual/en/function.is-array.php
|
||||
* @see https://secure.php.net/manual/en/function.is-array.php
|
||||
* @since 2.0.8
|
||||
*/
|
||||
public static function isTraversable($var)
|
||||
|
Reference in New Issue
Block a user