You are here: Re: year in a (****) format « PHP Programming Language « IT news, forums, messages
Re: year in a (****) format

Posted by Krustov on 03/27/07 20:24

<comp.lang.php>
<iktorn>
<Tue, 27 Mar 2007 21:55:14 +0200>
<eubsnv$qnr$1@news.task.gda.pl>

> You can try this:
>
> <?php
> $text ="sajdkahs (2005) asgjgdjasdkh (20056) hdsgfjsgfsd
> ajgsda (1234 jksdhkjfhskjdh ) sgfdggsd (1256)";
> if(preg_match_all("/\([0-9]{4}\)/",$text,$matches)) {
> print_r($matches[0]);
> }
> ?>
>

Works fine .

But print_r is something i havent got around to learning yet .

How do i grab the data from it instead of having it printed to the
screen .

 

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

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