try str_replace()
or preg_replace()

Elias,

"Nick Wilson" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi everyone,
>
> I break out in a cold sweat just thinking about regex, so I thought I'd
> ask you if there was an easier way to do this:
>
>     I want to look through all of the files in a directory and extract a
>     certain variable from each.
>
>     This is to create a dynamic menu of the directory: The files are php
>     scripts that assign $title (among others) to Smarty templates.
>
>     I need to get $title from each file
>
> I had a look through the docs and didn't see anything obvious, which is
> why I'm here :-)
>
> Many thanks...
> - --
> Nick Wilson     // www.tioka.com
>
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
>
> iD8DBQE9SEtnHpvrrTa6L5oRAuVyAJ4j4jfC4nKKni3S6V5xsmZH2xhPDQCdF7wA
> Y0vShZPQ1n5qZE48LIhCVyA=
> =DLPZ
> -----END PGP SIGNATURE-----



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to