Html4newbies
Put your hands into html and php
Home
Privacy
About
Contact

Hosting Links
Hosting
Free Php Snippets
Php Snippets 1
Php Snippets 2
Php Snippets


Foreach loop



sample output :
This element is: copper
This element is: iron
This element is: gold
This element is: cobalt


Form handling



Include a file with error reporting



Check if a file exists



Show referring URL



Random number



Result:
1561368479
1724345653
14

Form action - detect form post



For loop



Result:
12345678910

Ban / block IP addresses



Email validation



Redirect browser



Array declaration



Email



foreach loop



switch - strings



Result:
a dragon goes: nice to eat you

switch - integers



trim and convert to lowercase



Script Execution Time



Result:
Script took 9.53674316406E-7 seconds to exicute

Word of the day


The text file contains all of the words/phrases that will be displayed on a certain day. This should have only one item/phrase per line.

Result:

Money


Remove all characters except letters and numbers from a string



Result:
This is some text and numbers 12345 and symbols


Copyright © 2002-2017 Html4newbies - Html4newbies.com NetWork