Created
May 8, 2013 10:02
-
-
Save mcatta/5539507 to your computer and use it in GitHub Desktop.
Ricerca per pattern in PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$to_search = '{pippo}'; | |
preg_match("/{(.*)}/", $to_search, $result_array); | |
$result_array; // Array with results, string {string} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment