You are here: Re: Pulling a specific string from a file « PHP Programming Language « IT news, forums, messages
Re: Pulling a specific string from a file

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация