<?php strpbrk(string $string, string $characters): string|false
<?php $ip6 = substr($hostName, 1, $index - 1); $hostName = substr($hostName, $index + 1); if (strpbrk($hostName, '[]') !== false || substr_count($hostName, ':') > 1) { return $error; } }
<?php $argument = strtr($argument, "\n", ' '); $quote = strpbrk($argument, " \t") !== false; $argument = Preg::replace('/(\\\\*)"/', '$1$1\\"', $argument, -1, $dquotes); $meta = $dquotes || Preg::isMatch('/%[^%]+%|![^!]+!/', $argument);
<?php $meta = $dquotes || Preg::isMatch('/%[^%]+%|![^!]+!/', $argument); if (!$meta && !$quote) { $quote = strpbrk($argument, '^&|<>()') !== false; } if ($quote) {
<?php if (Platform::isWindows()) { $cmd = Preg::replaceCallback("/('[^']*')/", function ($m) { $char = (strpbrk($m[1], " \t^&|<>()") !== false || $m[1] === "''") ? '"' : ''; return str_replace("'", $char, $m[1]); }, $cmd);