Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • how to make URL in php using http_build_query

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 376
    Comment on it

    /* suppose we have an array consist of 4 or more than that parameters then in order to pass these parameters to URL then we can use http_bhild_query as follows */

    $data = array('city'=>'delhi',
                  'cloth'=>'dress',
                  'cow'=>'milk',
                  'php'=>'hypertextprocessor');
    echo http_build_query($data);
    
    output ==>> city=delhi&cloth=dress&cow=milk&php=hypertextprocessor

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: