On Tue, Feb 25, 2020 at 8:19 PM Michael Morris wrote:
> I don't remember if this has been discussed before, but I've been working
> with some listing code and wishing for a cleaner way to do this
>
>if (count($a) === 0) {
> // code for no results
> }
> else {
> foreach( $a as $key
Am 25.02.2020 um 20:18 schrieb Michael Morris :
> How difficult would it be to make the following work in the interpreter?
>
> foreach($a as $key => $value) {
>// code for iteration
> }
> else {
>// code for no results
> }
> ?>
>
> The code of the else clause executes if the foreach
I don't remember if this has been discussed before, but I've been working
with some listing code and wishing for a cleaner way to do this
$value) {
// code for iteration
}
}
?>
How difficult would it be to make the following work in the interpreter?
$value) {
// code for iterat