<?php
function productMax($str) {
$temp = [];
echo $str;exit;
$newArr = explode($str,',');
print_r($newArr);exit;
// code goes here
return $str;
}
// keep this function call here
echo productMax(fgets(fopen('php://stdin', 'r')));
?>
To embed this project on your website, copy the following code and paste it into your website's HTML: