- substr: documentation ( source)
- var_dump: documentation ( source)
- str_replace: documentation ( source)
- strtoupper: documentation ( source)
<?php
$symbol = AAATX;
$prd = strtoupper(str_replace(substr($symbol, -1), '.' . substr($symbol, -1), $symbol));
var_dump($prd);