[ create a new paste ] login | about

Link: http://codepad.org/RLa1Y5Rd    [ raw code | output | fork ]

PHP, pasted on Dec 8:
1
2
3
4
5
6
7
<?php
  $input = "the quick | brown \ fox jumped";

    echo strtr($input, array(
        '|' => '\\|',
        '\\' => '\\\\'
    ));


Output:
1
the quick \| brown \\ fox jumped


Create a new paste based on this one


Comments: