- serialize: documentation ( source)
<?php
$params = [
'aafunction' => 'addReviewToProduct',
'title' => 'TestTitlempn 4476217645',
'text' => 'TestTextmpn 4476217645',
'productType' => 'mpn',
'productId' => '4476217645',
'rating' => 4,
'userId' => '700'
//'make' => 'Acura',
//'model' => 'TL',
//'year' => '2007 '
];
echo serialize($params);