There is an information template, for example, "name: @, phone number @, please notify this person", where @ is the variable to be modified, fill in the information and change to {code ...} how can I determine whether the modified template uses the previous template? There is an information template, such:
"Name: @, phone number @, please notify this person"
@ Is the variable to be modified. fill in the information and change it
"Name: James, tel: 15888888888, please notify this person"
How can I determine whether the modified template uses the previous template?
Reply content:
There is an information template, such:
"Name: @, phone number @, please notify this person"
@ Is the variable to be modified. fill in the information and change it
"Name: James, tel: 15888888888, please notify this person"
How can I determine whether the modified template uses the previous template?
Regular expression replacement preg_replace: Xxx,Replace :@,
$ A = "name: James, tel: 15888888888, please notify this person"; var_dump (preg_replace ('/:( [^ <] *?), /Is ',': @, ', $ ));
Then compare it with your information template.