Show
Ignore:
Timestamp:
02/02/2008 01:19:56 AM (11 months ago)
Author:
Geert
Message:

html::query_string() deprecated in favor of http_build_query().
http://php.net/http_build_query

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/helpers/html.php

    r1825 r1900  
    5252        public static function query_string($array) 
    5353        { 
    54                 if (empty($array) OR ! is_array($array)) 
    55                         return ''; 
    56  
    57                 $string = array(); 
    58  
    59                 foreach($array as $key => $value) 
    60                 { 
    61                         $string[] = $key.'='.rawurlencode($value); 
    62                 } 
    63  
    64                 return implode('&', $string); 
     54                return http_build_query($array); 
    6555        } 
    6656