You are here

function DB_common::_rtrimArrayValues in Flickr API 5

Right-trims all strings in an array

@access protected

Parameters

array $array the array to be trimmed (passed by reference):

Return value

void

2 calls to DB_common::_rtrimArrayValues()
DB_mysql::fetchInto in phpFlickr/PEAR/DB/mysql.php
Places a row from the result set into the given array
DB_pgsql::fetchInto in phpFlickr/PEAR/DB/pgsql.php
Places a row from the result set into the given array

File

phpFlickr/PEAR/DB/common.php, line 2116

Class

DB_common
DB_common is the base class from which each database driver class extends

Code

function _rtrimArrayValues(&$array) {
  foreach ($array as $key => $value) {
    if (is_string($value)) {
      $array[$key] = rtrim($value);
    }
  }
}