Answers for "php echo array"

PHP
1

php echo array

function echo_arr($arr){
        for ($i=0; $i < count($arr); $i++) { 
                echo $arr[$i];
            }
        }

echo_arr($your_array_here);
Posted by: Guest on June-29-2021
2

php echo array

<?php
$a = array ('a' => 'apple', 'b' => 'banana', 'c' => array ('x', 'y', 'z'));
print_r ($a);
?>
Posted by: Guest on April-02-2020
1

php echo array

foreach($results as $result) {
	echo $result . '<br>';
}
Posted by: Guest on April-02-2020
2

php echo array

$a = array ('a' => 'apple', 'b' => 'banana', 'c' => array ('x', 'y', 'z'));
print_r ($a);
Posted by: Guest on October-08-2020
1

php echo array

<?php
$cars = array("Volvo", "BMW", "Toyota");
echo "I like " . $cars[0] . ", " . $cars[1] . " and " . $cars[2] . ".";
?>
Posted by: Guest on April-02-2020
0

php echo array

$String = implode(",", $Array);
Posted by: Guest on October-11-2021

Browse Popular Code Answers by Language