Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $handle = fopen('http://webnew.dsebd.org/admin-real/datafile/quotes.txt', 'r');
- $my_array = array();
- while ( !feof($handle))
- {
- $text = fgets($handle);
- array_push($my_array, $text);
- }
- $codes = array();
- $price = array();
- $test_array = array();
- for ($i = 4; $i < count($my_array); $i ++)
- {
- $test_array[] = preg_split('/\s+/', trim($my_array[$i]));
- }
- echo '<pre>';
- var_dump($test_array);
- echo '<pre/>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement