Pages

25 February, 2022

Laravel array to string error

 <?php


“Laravel array to string error”

//Simple PHP array.
$array = array(1, 2, 3);

//Loop through the elements.
foreach($array as $value){
    //Print the element out.
    echo $value, '<br>';
}

No comments:

Post a Comment

Thanks