If (test against a regex)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Is there a way to test a variable against a regex similar to the way
Perl uses the binding operator =~ ?

e.g. 
	if ($envLine =~ /^* information:/)

	Will match:
		Environment information:
		Plugin information:
		Etc information:


Thanks in advance,
Paul

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



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux