I was wondering if I need to use \"break\" in \"switch\" function when \"return\" is used.
function test($string) { switch($string) { case \'test1\':
You don't need it, but I would strongly advise using it in any case as good practice.