~lzap/cupooy/trunk

« back to all changes in this revision

Viewing changes to lib/myHelpers.php

  • Committer: Lukáš Zapletal
  • Date: 2009-11-16 11:41:15 UTC
  • Revision ID: lzap@shark-20091116114115-fb6rk8bq5ayk0fv4
Finish

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
function __is_notnull($v) {
 
4
  return !(is_null($v) || strlen($v) == 0);
 
5
}
 
6
 
 
7
function http_build_query_safe($array) {
 
8
    return http_build_query(array_filter($array, "__is_notnull"));
 
9
}
 
 
b'\\ No newline at end of file'