10
uuppi
4y

Do you know any awesome programming "poems", like this one:

// Replaces with spaces the braces in cases where braces in places cause stasis
$str = str_replace(array(" \{", "\}"), " ", $str);

Comments
  • 2
    // off the top of my head, complete non sense, and a bad way to do it, but here goes

    // I split the sheet, the sheet I split and with the splitted sheet I git
    $sheet = file_get_contents('sheet.csv');
    $split = str_split($sheet);
    // do something
    file_put_contents('splitted-sheet.csv', implode($split));

    sudo git add splitted-sheet.csv
Add Comment