If people come and ask stupid questions I will give them stupid answers.
"hello..anyone help me to give an example code for search?"
What the hell is that? Search? Search what? And in what context?
This is a PHP forum. There are thousands of examples of search functionality a Google search away.
The original question came from someone too lazy to do anything for themselves - giving them help will encourage them to coast. If it was up to me I'd just delete the one-poster stupid question brigade full stop.