Lines Matching refs:value
51 * @param string $value A PHP value
53 public static function requiresDoubleQuoting(string $value): bool argument
55 return 0 < preg_match('/'.self::REGEX_CHARACTER_TO_ESCAPE.'/u', $value);
61 * @param string $value A PHP value
63 public static function escapeWithDoubleQuotes(string $value): string argument
65 return sprintf('"%s"', str_replace(self::ESCAPEES, self::ESCAPED, $value));
71 * @param string $value A PHP value
73 public static function requiresSingleQuoting(string $value): bool argument
77 …if (\in_array(strtolower($value), ['null', '~', 'true', 'false', 'y', 'n', 'yes', 'no', 'on', 'off…
83 …reg_match('/[ \s \' " \: \{ \} \[ \] , & \* \# \?] | \A[ \- ? | < > = ! % @ ` \p{Zs}]/xu', $value);
89 * @param string $value A PHP value
91 public static function escapeWithSingleQuotes(string $value): string argument
93 return sprintf("'%s'", str_replace('\'', '\'\'', $value));