php echo array
function echo_arr($arr){
for ($i=0; $i < count($arr); $i++) {
echo $arr[$i];
}
}
echo_arr($your_array_here);
php echo array
function echo_arr($arr){
for ($i=0; $i < count($arr); $i++) {
echo $arr[$i];
}
}
echo_arr($your_array_here);
php echo array
<?php
$a = array ('a' => 'apple', 'b' => 'banana', 'c' => array ('x', 'y', 'z'));
print_r ($a);
?>
php echo array
foreach($results as $result) {
echo $result . '<br>';
}
dsiplay array on php
$array = array(
1 => 'apple',
2 => 'banana',
)
// Method 1
echo "<pre>";
print_r($array);
echo "</pre>";
// Method 2
echo "<pre>";
var_dump($array);
echo "</pre>";
// Method 3 (cakephp)
pr ($array);
php echo array
$a = array ('a' => 'apple', 'b' => 'banana', 'c' => array ('x', 'y', 'z'));
print_r ($a);
php echo array
<?php
$cars = array("Volvo", "BMW", "Toyota");
echo "I like " . $cars[0] . ", " . $cars[1] . " and " . $cars[2] . ".";
?>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us