I really need to stop working at 1am... I used to be good, but now my brain no worky. Say I have $var. With a single array element, it would look like Array { Array('Testing', '123'); } Code (markup): If I have multiple array elements, then it looks like: Array { [0] => Array('Testing', '123'); [1] = Array('This is', 'another element'); } Code (markup): Is there some way to automatically put the first one into an array, so its the same, having [0] = array('Testing', '123') ? I hope that made perfect sense and I hope the answer is super simple and I just can't think.
<?php $var[] = "123"; $var[] = "456"; $var[] = "abc"; $var[] = "xyz"; $var[] = "pqr"; $var[] = "12.3"; $var[] = "Everything looks good till now."; $var[] = "Okay done"; ?> PHP: Try this out.
The solution to all programming obstacles. Don't you find that sometimes they are more than is actually required? Slowing down the design process?