Posted by Erwin Moller on 12/07/05 15:48
elyob wrote:
> Hi, I'm looking at pulling a string from a source file and am wondering
> the best way to do this. I have a starter and ender quote but am just
> wondering the best way to do this? Regular expressions?
>
> Thanks
Easiest way without regexpr is using:
substr()
and
strpos()
Use strpos to find the position of the starterquote and also for endquote.
Use substr to retrieve the part inbetween.
check at www.php.net for usage.
It is really very straightforward (when you know the functionnames. :P )
Regards,
Erwin Moller
Navigation:
[Reply to this message]
|