Possible preg match miss format in php -
I have this code:
// get $ data = $ _POST data [List ']; Echo ($ data); Echo ('& lt; br & gt; then & lt; br & gt;'); $ Data = str_replace ("\ t", "", $ data); Echo ($ data); $ Matches = array (); $ User = array (); Preg_match ("/:. +?) ((?: [AZ]) (?: [0- 9] + :) {3} [0-9] +) ([0- 9] +) \ / ([ 0- 9] +) ([0- 9] +) \ / ([0- 9] +) / ", $ data, $ matches); List (, $ user ['base'], $ user ['location'], $ user ['economy'], $ user ['maxecon'], $ user ['ports'], $ user ['maxports'] ) = $ Match; $ Base = $ user ['base']; $ _SESSION ['base'] = $ base; $ Location = $ user ['location']; $ _SESSION ['location'] = $ location; // interrupt $ econ = intval (($ user ['econ']), 10); $ _SESSION ['econ'] = $ econ; $ Maxecon = Interval (($ user ['max' ']), 10); $ _SESSION ['max' '] = $ max action; $ Port = interval (($ user ['port']), 10); $ _SESSION ['port'] = $ port; $ Maxports = Interval (($ user ['maxime']), 10); $ _SESSION ['maxime'] = $ max;
I know that the Resources: See it in action here: preg_match
pattern is correct because it is used successfully on another page for desired intentions in a list, where action on each line This example contains $ data data but remains
$ base
, $ location
and $ tecon
is.
See the whole code here:
Found .. The answer can not be called for the wire. Since this is a single pre-match operation value, it can be said directly with the matching array.
Comments
Post a Comment