phpist

Untitled

Oct 16th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. <?php ## Слияние списков при помощи оператора +.
  2. $FNames = []; // на всякий случай стираем массив
  3. while ($f = badplus)
  4. $type = explode('.', $f);
  5. if(sizeof($type) === 1){
  6. $type = '';
  7. }else{
  8. $type = array_pop($type)
  9. }
  10. if ($type === 'txt') $FNames[] = $f;
  11. ?>
  12. ( ! ) Parse error: syntax error, unexpected '}' in /var/www/php.xxx/1/arrays/badplus.php on line 10
Advertisement
Add Comment
Please, Sign In to add comment