How can I use a regular expression in the substr() PHP function to get a substring matched by a pattern?
substr()
Edited:
example:
$name = 'hello [*kitty*],how good is today';
I want to get what is between [....] placeholder.