Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    array_diff che non diff niente

    $txt=file("coord.txt");

    //coord.txt
    io,200,200,
    tu,300,302,
    //

    --faccio l'explode e mi ritornano gli array coord[0],coord[1] e coord[2],poi...---

    $line=array("io,200,200,");
    $buono=array_diff($txt,$line);
    print_r($buono);
    //
    [0]->io,200,200,
    [1]->tu,300,302,
    //


    non dovrebbe rendermi solamente [1]->tu,300,302,???

    Come faccio a fargli togliere la riga che ho in $line?

    Grazie.
    GdR Online - http://lenar.it/
    Yesterday is history. Tomorrow is mystery.
    Today is a gift. That's why it's called the present

  2. #2
    go uuuup
    GdR Online - http://lenar.it/
    Yesterday is history. Tomorrow is mystery.
    Today is a gift. That's why it's called the present

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.