Custom features and PHP code

I have been trying to use custom features in PHP using the GeneratePKeys.I have introduced a new feature named Customer_name how do I modify the call of function.What is the correct sintax considering below?

$name=$_POST["name"]; //this is the customer name which I want to add//and this is how the function is currently called$xml = new SimpleXMLElement(LimeLM::GeneratePKeys($limelm_version_id, 1, 1, $to));

Thanks for your help.

Hey Vlad,

You can pass an array of features into the GeneratePKeys function. The code would look something like this:

$featNames = array('Customer_name');$featValues = array($_POST["name"]);


$xml = new SimpleXMLElement(LimeLM::GeneratePKeys($limelm_version_id, 1, 1, $to, $featNames, $featValues));

Thanks guys, that worked!Your support is great.