|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-04-04 10:51 UTC] sniper@php.net
[2003-04-09 06:38 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 18:00:01 2025 UTC |
According to the documenmtation,preg_match can handle Arrays But this will cause PHP to lock up the computer. $regExp = "/((\/\*)+([\*]*\s*)+(\w+ *)+([\*]\s*(\*+\/{1}))+){1}/"; $file = file($obj->fileLocation); $sql = preg_replace($regExp,"",$file); I have tried imploding the array obtained from file() first but the result was the same. Maybe i should mention that PHP is running in CGI mode. regards, Ed Hofrichter