↧
Answer by Mihai Matei for Store a for loop in php variable
Even if I don't understandArrays will not work here because the same goes for a foreach loop; it cannot be stored as a variable.I would recommend you to use in_array and range functions:if...
View ArticleStore a for loop in php variable
$minutes = for($i = 1; $i <= 60;$i++) {return $i.'||';};if($input != $minutes) {exucute code here;}I have this piece of code here because I want to validate my inputs to check if their values are...
View Article