How to do PHP unserialize jQuery serialized form data The Jquery serialize method just takes the form elements and puts them in string form. example - "firstvariable=value&secondvariable=othervalue"; if you are not using associative array then you can access this variable by $_GET and $_POST method. Example = $variable1 = $_GET[' firstvariable ']; but if your data in an array then you need to unserialize jquery serialized data in php. you can unserialize jquery seralized data by usin this methods. you can unserialize jquery serialize data into php by using parse_str. //GET METHOD $params = array (); parse_str ( $_GET , $params ); //POST METHOD $params = array (); parse_str ( $_POST , $params ); if your data serialize data in a variable then you need to use- $params = array(); parse_str($_POST['formdata'], $params); you can also use this function to unserialize your data functi...
PHP,WORDPRESS,CAKEPHP,JQUERY,PHP TUTORIALS,CAKEPHP TUTORIALS,JQUERY CODES, CSS CODES, HTML CODES,EXPO, React, React Native, Angular,OOPS ,PHP INTERVIEW QUESTIONS @shubham715