Quantcast
Channel: Store a for loop in php variable - Stack Overflow
Browsing latest articles
Browse All 2 View Live

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 Article


Store 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

Browsing latest articles
Browse All 2 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>