If I have an array, e.g. a text array, and I want to echo e.g. the first through 10 letter of the array, how do I do that?
I know this:
I tried:PHP Code:$text = "bla bla bla bla bla bla bla";
echo $text[0]; // results in "b"
echo $text[1]; // results in "l"
and all sorts of other combinations - and googled and googled for an answer without succes ...PHP Code:echo $text[0:10];
I am sure the solution is dead simple ...



Reply With Quote

Bookmarks