<?php
public function _block_get_positions ($txt){
$re1=".*?";
$re2="\\[";
$re3=".*?";
$re4="\\[";
$re5=".*?";
$re6="\\[";
$re7=".*?";
$re8="\\[";
$re9=".*?";
$re10="(\\[)";
$re11="(n)";
$re12="(i)";
$re13="(d)";
$re14="(:)";
$re15="(\\d+)";
if ($c=preg_match_all ("/".$re1.$re2.$re3.$re4.$re5.$re6.$re7.$re8.$re9.$re10.$re11.$re12.$re13.$re14.$re15."/is", $txt, $matches)) {
$c1=$matches[1][0];
$w1=$matches[2][0];
$c2=$matches[3][0];
$c3=$matches[4][0];
$c4=$matches[5][0];
$int1=$matches[6][0];
}
return $int1;
}
$a="Fatti&Storie 5 - Lorem ipsum dolor nid:666 [bid:667] [cid:668] [id:669] [12] sit amet [nid:112]";
print(_block_get_position($a));
- Output for 5.4.0 - 5.4.32
- Parse error: syntax error, unexpected 'public' (T_PUBLIC) in /in/soBAU on line 2
Process exited with code 255. - Output for 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29
- Parse error: syntax error, unexpected T_PUBLIC in /in/soBAU on line 2
Process exited with code 255. - Output for 5.0.0 - 5.0.5
- Parse error: parse error, unexpected T_PUBLIC in /in/soBAU on line 2
Process exited with code 255. - Output for 4.4.2 - 4.4.9
- Parse error: syntax error, unexpected T_FUNCTION in /in/soBAU on line 2
Process exited with code 255. - Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1
- Parse error: parse error, unexpected T_FUNCTION in /in/soBAU on line 2
Process exited with code 255. - Output for 4.3.2 - 4.3.4
- Parse error: parse error in /in/soBAU on line 2
Process exited with code 255.
preferences:
237.7 ms | 1395 KiB | 123 Q