<?php //$regex = '~(?P<function_name>.*?)\s*(?P<parameters>\(.*?\))\s*~six'; $regex = '/\(([^)]+)/'; preg_match($regex, 'printr(abc,assdd)', $matches); print_r($matches);
You have javascript disabled. You will not be able to edit any code.