- var_dump: documentation ( source)
- explode: documentation ( source)
<?php
$str ='"text text text "text" text"';
Var_dump(explode('"', " " .$str. " "));
$str ='text "text" text';
Var_dump(explode('"', " " .$str. " "));
$str ='"text" text text text "text"';
Var_dump(explode('"', " " .$str. " "));