<?php
$strings = [
"Pizza 'PizzaName' this is a certain pizza",
"Pizza 'NamePizza' this is a certain pizza",
"Pizza 'Hawaii' this is a certain pizza",
"Pizza 'Pepperoni' this is a certain pizza",
"Pizza is a very nice pizza"
];
foreach ($strings as $string) {
print_r(preg_split("~[^']+'[^']+'\K ~", $string));
}
Array
(
[0] => Pizza 'PizzaName'
[1] => this is a certain pizza
)
Array
(
[0] => Pizza 'NamePizza'
[1] => this is a certain pizza
)
Array
(
[0] => Pizza 'Hawaii'
[1] => this is a certain pizza
)
Array
(
[0] => Pizza 'Pepperoni'
[1] => this is a certain pizza
)
Array
(
[0] => Pizza is a very nice pizza
)