Skip to content

Instantly share code, notes, and snippets.

@mcatta
Created May 8, 2013 10:02
Show Gist options
  • Save mcatta/5539507 to your computer and use it in GitHub Desktop.
Save mcatta/5539507 to your computer and use it in GitHub Desktop.
Ricerca per pattern in PHP
$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