anything you can do in vb, you can do in php. what exactly do you consider software programming?
there are already numbers for each letter. The ascii numbers. If you are not happy with them, subtract or add to them.
$myStr = 'blabla';
$splitString = str_split($myStr);
$asciiCodes = array_map('ord',$splitString);
$result = implode($asciiCodes);
echo $result;
read the manual on the functions I used and maybe do some extra "echoing" to understand what's going on.
hth,
Bjom