Menu Close
    Hire us Request quote Reading list Switch to dark mode

    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 received your message and our expert will get back to you shortly.
    Send Again
    Close