|
|
|
preg_replace ค้นหาหลายคำสั่งใช้วิธีวางเรียงลำดับอย่างไรครับ |
|
|
|
|
|
|
|
Code (PHP)
$search=array(
'#\[url[^\]]*\].*?\[/url\]#',
'#\[quote[^\]]*\].*\[/quote\]#',
'#\[img[^\]]*\].*?\[/img\]#'
);
$result=preg_replace( $search , '', $text);
echo $result;
|
|
|
|
|
Date :
2014-12-13 08:19:27 |
By :
Chaidhanan |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Date :
2014-12-13 14:39:02 |
By :
LAGO |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 02
|