Menu
Hi – I’m getting missing argument warnings, ie:
Warning: Missing argument 1 for Search::search()
on the following code, but can’t work out why (the code seems to work fine).
[CODE]
class Search
{
public function search($type)
{
//my code
}
}
… which is called by…
[CODE]
$searchCar = new Search();
$searchCar->search(“quick”);
Obviously I could just switch the PHP warnings off, but I’m just interested to know what’s actually going wrong here!
Thanks for any help possible!
Nick