i have data that saved in save.txt below is the content...
A;;;
B;;;
C;;;B
D;;;A
E;;;B
F;;;C
How to delete the A and B values in PHP?
$pick= file_get_contents('save.txt');
$rows= explode("
", $pick);
array_shift($rows);
foreach($rows as $row => $data)
{
$row_data = explode(";",$data);
echo $row_data[0].'-'.$row_data[3].'<br/>';
if($row_data[3]==false)
{
//here is the command
}
}
please help me. thankyou :)