Hi Guys,

I need to extract phrases / words into an array from a string. The current code I am using is shown below, but it doesn't work as intended.

Here is the output i would like to see from the folowing string:

STRING:
Code:
"technical writer" "documentation manager" "technical author"
Output should be:
PHP Code:
<?php
Array
(
    [
0] => technical writer
    
[1] => documentation manager
    
[2] => technical author
)
?>
STRING:
Code:
"technical writer" and "documentation manager" and "technical author"
Output should be:
PHP Code:
<?php
Array
(
    [
0] => technical writer
    
[1] => and
    [
2] => documentation manager
    
[3] => and
    [
4] => technical author
)
?>