Invalid arguments passed in php

/********************************************************************************/
/* TITLE :  Invalid arguments passed in php
/* DESCRIPTION :  To Solve the Invalid arguments passed in php
/* CREATED BY   :  Jemiris Selvi S
/* CREATED ON :  24-May-2017
/* MODIFIED BY :  Jemiris Selvi S
/* MODIFIED ON :  24-May-2017
/********************************************************************************/

Problem :  implode() invalid arguments passed in php

Answer :

//Need Initialize an Array while parsing in the parameter.
$condition  =  array();

$finalcondition = implode(' AND ',$condition);