Tag Archives: array

Description: Having a PhP form, we need to manipulate in JavaScript an object that depends on the form input. Solution: The best way to do it is to use an encoded JSON object or an AJAX call. The AJAX call … Continue reading →

Description: Having an obtained StdClass Object, we require to change it into a SOAP structure object or Array compliant. Solution: Converting a StdClass Object with PhP basically means iterating the object and populating the public properties with elements from the … Continue reading →

Description: How to save an Array variable as a regular database value? Solution: PHP offers the serialize() function, that creates a representation of the variable that can be stored everywhere. This can be used for other types of variables as … Continue reading →