Ive thought about this...
Code: Select all
$variable = 1234;
.
.
.
preg_match( "#\s\w...\s*"$variable"\s*...#"...)
.
.
.Thanks
Moderator: General Moderators
Code: Select all
$variable = 1234;
.
.
.
preg_match( "#\s\w...\s*"$variable"\s*...#"...)
.
.
.Code: Select all
$number = 1234;
$regexp = '/\s\w...\s*'.$number.'\s*.../';
preg_match($regexp, $string);