I want to create my own function loop()
:
loop($x,$y){
//do something
}
it should work like for, foreach operators:
$y=count($array);
for($x=0; $x<$y; $x++){
//do something
}
How to create functions like this with { }
in PHP? (NOT a regular function)