- substr_count: documentation ( source)
- var_dump: documentation ( source)
- strtolower: documentation ( source)
<?php
$string = " Posting for friend Cupicake
i*b mhr 57.5
inb ohr 37.4
inb wand 582,582,569
inb sing 163.9
inb mha 192
inb oha 192 ";
$string = strtolower($string);
$bs = substr_count($string, 'b');
$ses = substr_count($string, 's');
$slashes = substr_count($string, '/');
var_dump($slashes);