You are here: preg_match_all - help « All PHP « IT news, forums, messages
preg_match_all - help

Posted by Gernot Frisch on 09/28/64 11:48

I don't know where to look for the syntax of that command.


Here's the string I have:
0) Kung Fu : 1000n1) jack : 150n2) jim : 10n3) jonny : 0n

It should split up in:
array('Kung Fu' =>1000, 'jack'=>150, 'jim'=>10, 'jonny'=>0);

That's what I have found somewhere:
preg_match_all('/d+)s(.+)s:s(.+)/', $content, $tokens);

But it gives:
Warning: preg_match_all() [function.preg-match-all]: Compilation
failed: unmatched parentheses at offset 2

--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}

________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com

 

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

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