Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $str = "Articulo;Color;Incluir en;Tag_Agotado;Tag_Color_Agotado;Tag_TallesEspeciales;Tag_EntregaInmediata;";
- $Astr = explode(',',$str);
- $columnas = 0;
- foreach ($Astr as $col){
- if ($col != ''){
- $columnas++;
- }
- }
- if ($columnas != 7){
- echo "error";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement