PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $keywords = preg_split("/[(,]+/", "Full Computers $1200 iMac +$100 500GB SSD +$200 1TB SSD (Description Text for iMac) (Description Text for iMac)", PREG_SPLIT_DELIM_CAPTURE); print_r($keywords); $descriptions = preg_split("/[(,]+/", $keywords[1]); $keyword = preg_split("/[$,€,£]/", $keywords[0]); print_r($keyword); echo "Category: ".$keyword[0]." - "; //$category echo "Descriptions: "; foreach ($descriptions as $item) {echo $item." / ";}; ?>
Show:  
Copy Clear