Hy, I have and explode issue. I need to brake a string by more than one separators: EX: $vars = "var1/var2-var3/var4-var5-var6/var7" from this i need do get every var so explode("/",$vars) or explode ("-",$vars) just wouldn't do it. Many thanks
I agree. DO something like this: $vars = "var1/var2-var3/var4-var5-var6/var7"; $formattedVars = str_replace('-','/',$vars); $array = explode('/',$formattedVars); //or into a single statement $array = explode('/',str_replace('-','/',$vars)); PHP: