You are here: RE: [PHP] Regex help « PHP « IT news, forums, messages
RE: [PHP] Regex help

Posted by "Albert" on 01/13/06 16:07

Mike Smith wrote:
> I'm trying to save myself some time by extracting certain variables
> from a string:
> 102-90 E 42 X 42 X 70 3/8

If this string is always in this format

<xxx> E <panel> X <width> X <height>

then you could try something like:

// Very much untested
$unit = '102-90 E 42 X 42 X 70 3/8';
$split1 = explode('E', $unit);
list($panel, $width, $height) = explode('X', $split1[1]);


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.17/228 - Release Date: 2006/01/12



[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

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