Menu Close
    Start a Project Request quote Reading list Switch to dark mode
    marketplace-mod

    parse_str() alternative in magento 2

    As we know that magento restrict some core PHP functions which we found in MEQP2 which contains the rules.

    Let’s start to over come this issue.

    As we know Magento 2 is using Zend Framework ther is a class \Zend\Uri\Uri

    First initialise Zend Uri in your class constructor.

    Now set the query string and then get it as array.

    $formatedParams contains an array of your querystring.

    . . .

    Comment

    Add Your Comment

    Be the first to comment.

    Back to Top
    css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again
    Close