php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /opt/php-7.0.1/ext/standard/tests/strings/ |
files >> //opt/php-7.0.1/ext/standard/tests/strings/http_build_query_variation3.phpt |
--TEST-- Test http_build_query() function: usage variations - testing four parameter added in PHP 5.4.0 --CREDITS-- Adam Gegotek <adam [dot] gegotek [at] gmail [dot] com> --SKIPIF-- <?php if (version_compare(PHP_VERSION, '5.4.0', '<')) die("skip this test if PHP_VERSION is less than 5.4.0"); ?> --FILE-- <?php /* Prototype : string http_build_query ( mixed $query_data [, string $numeric_prefix [, string $arg_separator [, int $enc_type = PHP_QUERY_RFC1738 ]]] ) * Description: Generates a URL-encoded query string from the associative (or indexed) array provided. * Source code: ext/standard/http.c */ $oDimensional = array( "name" => "main page", "sort" => "desc,admin", "equation" => "10 + 10 - 5" ); echo http_build_query($oDimensional, '', ini_get('arg_separator.output'), PHP_QUERY_RFC1738) . PHP_EOL; echo http_build_query($oDimensional, '', ini_get('arg_separator.output'), PHP_QUERY_RFC3986); ?> --EXPECTF-- name=main+page&sort=desc%2Cadmin&equation=10+%2B+10+-+5 name=main%20page&sort=desc%2Cadmin&equation=10%20%2B%2010%20-%205y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`