- 1
printing two elements in one specific array in same dimension.
If i want to print the two values from same row what the solution?
1 Answer
+ 3
You can print multiple stuffs using the standard echo, each separated by comma;
<?php
//Create one dimension array
$arr = array("SoloLearn", " Learn", " Code", " for", " free");
// output multiple array elements on single call
// to echo
echo $arr[0], $arr[2], $arr[3], $arr[4];
?>
Hope I understand your question well, otherwise you can post back me here.
Hth, cmiiw