Expand|Select|Wrap|Line Numbers
- $pattern = '#^http://domain.com/(.*)(\w*)0\b#';
- preg_match_all($pattern, $email, $urls);
1. print_r($urls, true)
2. print_r($urls[0], true)
like this:
1
Array
(
[0] => Array
(
)
[1] => Array
(
)
[2] => Array
(
)
)
2
Array
(
)
However, when I test code here, it works like charm
How can I get my values? It will be very nice to have them in a variables, like $url1, $url2...
Can anybody help? (Your time and effort is highly appreciated!)