urlVar: http://hamptonroads.com/2012/12/virginia-beach-crime?page=3

Pulling the Values Out Da Loop

Crime Type 2Unauthorized use of vehicle - 1100 block of Homestead Drive - 03/07/2016

Pulling the Values Out Da Loop

Unauthorized use of vehicle Crime Type 2Weapons offense - 1900 block of Pacific Avenue - 03/07/2016

Pulling the Values Out Da Loop

Weapons offense Crime Type 2Arson - 6500 block of Chartwell Drive - 03/07/2016

Pulling the Values Out Da Loop

Arson Crime Type 2Destruction of property - 6500 block of Chartwell Drive - 03/07/2016

Pulling the Values Out Da Loop

Destruction of property Crime Type 2Drug offense - 800 block of Kempsville Road - 03/07/2016

Pulling the Values Out Da Loop

Drug offense Crime Type 2Overdose - 4400 block of Bonney Road - 03/07/2016

Pulling the Values Out Da Loop

Overdose Crime Type 2Drug offense - 4400 block of Bonney Road - 03/07/2016

Pulling the Values Out Da Loop

Drug offense Crime Type 2Aggravated assault - 100 block of Comanche Close South - 03/06/2016

Pulling the Values Out Da Loop

Aggravated assault Crime Type 2Drug offense - 3600 block of Plaza Trail South - 03/06/2016

Pulling the Values Out Da Loop

Drug offense Crime Type 2Fraud - 3600 block of Plaza Trail South - 03/06/2016

Pulling the Values Out Da Loop

Fraud Crime Type 2All other reportable offenses - 700 block of Hecate Drive - 03/06/2016

Pulling the Values Out Da Loop

All other reportable offenses Crime Type 2All other reportable offenses - 1300 block of Skyhawk Circle - 03/06/2016

Pulling the Values Out Da Loop

All other reportable offenses Crime Type 2All other reportable offenses - 1300 block of Skyhawk Circle - 03/06/2016

Pulling the Values Out Da Loop

All other reportable offenses Crime Type 2Aggravated assault - 1000 block of Ocean Pebbles Way - 03/06/2016

Pulling the Values Out Da Loop

Aggravated assault Crime Type 2Hit and run - 3000 block of Blitz Court - 03/06/2016

Pulling the Values Out Da Loop

Hit and run Crime Type 2

scraped-data.txt is the text file used in this example.

PHP Write to Text File Example. This content was wrtten by the PHP server after opening up the file for writing. is fun! Last modified: