- var_dump: documentation ( source)
- strpos: documentation ( source)
- explode: documentation ( source)
- preg_split: documentation ( source)
<?php
$s = "1+hello/world";
$e = explode("/", $s);
$f = strpos($s, "af+");
$pattern = '/([\+-\/])/';
$r = preg_split($pattern, $s, -1, PREG_SPLIT_DELIM_CAPTURE);
var_dump($r);