Forum Moderators: coopster
"SELECT some_thing AS \"Some Thing\", ....";
Another option is if $content is an array then you know that $content[1], $content[3] and $content[5] need to be changed, so assign your somethingothers to them i.e. $content[1] = 'liableothers';
This will only work assuming the array will stay content.
If $content is a string then you could explode the contents into an array then reassign them, as above, then implode them back again.
If the contents of $content are not constant then you could explode them. Then loop through each to find 'others', but you would then need a switch/if/elseif/else loop to go through all the possible combinations of the contents of the previous part of the array. i.e.
$len = count($content);
for ($i=0; $i<$len; $i++) {
if ($content[$i] == 'other' && $content[$i-1] == 'Liabilities') {
$content[$i] = 'liableothers';
}
else // continue looking for all combinations
}