Advertisement
NelsonGG

Untitled

Oct 17th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1. $str = "Articulo;Color;Incluir en;Tag_Agotado;Tag_Color_Agotado;Tag_TallesEspeciales;Tag_EntregaInmediata;";
  2. $Astr = explode(',',$str);
  3.  
  4. $columnas = 0;
  5. foreach ($Astr as $col){
  6.     if ($col != ''){
  7.         $columnas++;
  8.     }
  9. }
  10.  
  11. if ($columnas != 7){
  12.     echo "error";
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement