function changeToCamelCase(string $str)
{
$explodeString = explode('_', $str);
$maxCount = count($explodeString);
for ($i = 1; $i < $maxCount; $i++) {
$explodeString[$i] = ucfirst($explodeString[$i]);
}
return implode($explodeString);
}
$string = 'connected_categories';
$newString = changeToCamelCase($string);
echo $newString;
$context = stream_context_create(
[
'http' => [
'method' => 'GET',
'header' => "path: /games/921770/\r\n" .
"User-agent: Mozilla/5.0 (Linux; Android 4.4.4; HM NOTE 1LTEW Build/KTU84P) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36 MicroMessenger/6.0.0.54_r849063.501 NetType/WIFI\r\n",
'ignore_errors' => true,
],
]
);
$request = file_get_contents(
'https://soccer365.ru/games/921770/',
false,
$context
);
die(print_r($request));
libxml_disable_entity_loader(false);
перед перед созданием экземпляра SoapClient.migrate create /path/to/sql
function longStr(string $str, int $j){
$arrStr = [];
while ($j < strlen($str)) {
if(! in_array($str[$j], $arrStr, true)){
$arrStr[] = $str[$j];
$j++;
} else {
return count($arrStr);
}
}
return count($arrStr);
}