note 9259 added to array_slice

From: Date: Wed, 25 Oct 2000 06:54:07 +0000
Subject: note 9259 added to array_slice
Groups: php.notes 
Request: Send a blank email to php-notes+get-6894@lists.php.net to get a copy of this message
Lets stay you have $string="foobar"; you can access $string[0] to get to 'f' So $string works as an array in this place, but you can't use "array_slice" on a string to get characters from index 2 to 4. What function is there in PHP to get range of characters from a string given starting and ending offset?? http://www.php.net/manual/function.array-slice.php

« previous php.notes (#6894) next »