Last active
December 25, 2019 01:43
-
-
Save vihoangson/9d138fe179b62eca96c9207609fc328d to your computer and use it in GitHub Desktop.
Bài này dành cho anh Tâm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$link = 'http://nhonha.vihan.net/San-pham/HANG-NOI-THAT-77/?min_price=200000000&max_price=4000000'; | |
preg_match('/min_price=(.+)&max_price=(.+)/', $link, $match); | |
var_dump($match); | |
/// OUT PUT | |
array(3) { | |
[0]=> | |
string(37) "min_price=200000000&max_price=4000000" | |
[1]=> | |
string(9) "200000000" | |
[2]=> | |
string(7) "4000000" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment