Skip to content
CoursesWeb Forum
Sections

arrays

1 thread tagged with this topic

Threads tagged arrays

  1. ✓

    How do I convert a stdClass object to an array in PHP?

    Cast it with (array) $obj to get an array of its properties. That only converts the top level, so nested objects stay objects. If the object came from...

    PHP Forms, Sessions and BasicsCallum IwuStaff answer
    0replies
CoursesWeb Forum. Questions and answers on learning web development: HTML, CSS, JavaScript, PHP, MySQL, Node.js and AI coding help.