[ create a new paste ] login | about

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

PHP, pasted on Jul 20:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
$a = ',';
echo 'strlen = '.strlen($a)."\n";

echo "\n==ASCII Codes==\n";
$b = str_split($a);
foreach($b as $x){
  echo ord($x)."\n";
}

echo "\n==str_replace==\n";
$c = '3602s,5300,5300XM,6126,6131,6131 NFC,6133,';
echo 'original string = '.$c."\n";
echo '_____new string = '.str_replace(chr(239).chr(188).chr(140), ',', $c);


Output:
1
2
3
4
5
6
7
8
9
10
strlen = 3

==ASCII Codes==
239
188
140

==str_replace==
original string = 3602s,5300,5300XM,6126,6131,6131 NFC,6133,
_____new string = 3602s,5300,5300XM,6126,6131,6131 NFC,6133,


Create a new paste based on this one


Comments: