[ create a new paste ] login | about

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

PHP, pasted on Jun 14:
1
2
3
4
5
6
7
8
<?php
$datatoconvert = "Some Word";
$converteddata = "";
$words = explode(" ", $datatoconvert );
foreach ($words as $a) {
  $converteddata .= $a[0];
}
echo $converteddata ;


Output:
1
SW


Create a new paste based on this one


Comments: