Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- set_time_limit (300);
- require_once('config.php');
- // Import my CSV as an array
- $stats = file('stats.csv');
- // Remove the first 4 lines. This will always be the same.
- $stats = array_slice($stats, 4);
- // I need to find the index that contains '----------' and delete all the indexes after it.
- $val = "--------------------------------------------------------------";
- $key = array_search($val, $stats);
- //No key is being shown?
- var_dump($key);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement