Skip to content

Instantly share code, notes, and snippets.

@ocombe
Last active December 18, 2015 10:59

Revisions

  1. ocombe renamed this gist Jun 20, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. ocombe renamed this gist Jun 20, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. ocombe created this gist Jun 13, 2013.
    9 changes: 9 additions & 0 deletions new_gist_file
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    public function findEncoding($str) {
    $tab = array("UTF-8", "ASCII", "ISO-8859-1");
    foreach ($tab as $i) {
    foreach ($tab as $j) {
    $chain .= " [iconv('$i','$j','$str'): " . iconv($i, $j, "$str") . "] ";
    }
    }
    return $chain;
    }