You are here: RE: [PHP] Variables and Strings « PHP « IT news, forums, messages
RE: [PHP] Variables and Strings

Posted by Jay Blanchard on 12/30/05 00:03

[snip]
Thanks for the responses guys, but what i'm saying is i would like to return
all the variable names i have in a string,
$String="Blah Blah Blah $VarName Blah Blah Blah";
$Vars=myspecialfunction($Varname);
echo ($Vars);

that code would produce $Varname, if there were more variables it would also
return the Variable Names in an array
[/snip]

And you call yourself Superman?!?

Keep in mind that the variable name in a double quoted string is
interpreted, you would have to use an outside process to read each line of
the file, locate the lines where the variables are, and then process to your
liking.

 

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

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