Hotel and training centre, Melksham, Wiltshire
High quality accommodation for course delegates, business travellers and the leisure visitor too.

Home Accessibility Bedrooms Book Here The Mouth Facebook Resources Find Us About Us Contact
 
For 2021 - online Python 3 training - see ((here)).

Our plans were to retire in summer 2020 and see the world, but Coronavirus has lead us into a lot of lockdown programming in Python 3 and PHP 7.
We can now offer tailored online training - small groups, real tutors - works really well for groups of 4 to 14 delegates. Anywhere in the world; course language English.

Please ask about private 'maintenance' training for Python 2, Tcl, Perl, PHP, Lua, etc.
More PHP sample and demonstration programs

It's amazing how many little (and not so little) new programs and demonstrations I write - here are some from the last couple of days:

• The Melksham / Bowerhill Christmas Quiz, 2007. Ten questions, work out the answers, click on a link at the bottom the page and it will be refreshed to tell you the actual results. Uses a data file of questions - would work equally well for Skegness, St Anne's or Aberdovey!

Try the Quiz, source

• An updated demonstration of joining two images with a "tear" - graphic artist effects via the GD module of PHP on your web page.

See a sample, source

• Sorting an Associate Array - and how User Defined Sorts work in PHP. The business of a callback function is quick a new concept to many of our customers, and this demonstration shows how it works ... complete with print statements within the comparator to help explain the algorithm.

See it run, See the source

• Sorting a regular array in PHP - forward, backward, and in a user defined way using a date that's embedded in the line. This demonstration program also shows you how to extract a date and time from a line of data using regular expressions, to convert it to a standard time format (that can be compared, sorted, etc) and then convert it back into a text form that's human or database readable.

Run the demonstration, and look at the source code for it

• There are many ways of looping through a PHP array, and this final example shows many of them compared in the same short program.

Run the program, source
(written 2007-12-01, updated 2013-01-02)

 
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articles
M201 - Well House Manor - Around Melksham, Wiltshire
  [437] Outside of the box - (2005-09-06)
  [676] Melksham, Wiltshire - (2006-04-08)
  [805] Melksham Carnival Parade - (2006-07-16)
  [811] Melksham in Bloom - (2006-07-22)
  [830] Butterflies in a Wiltshire garden - (2006-08-12)
  [847] Image maps for navigation - a straightforward example - (2006-08-28)
  [866] A lazy programmer is a good programmer - (2006-09-15)
  [879] Tuesday night is party night - (2006-09-26)
  [929] Presenting Melksham - for a weekend away in Wiltshire - (2006-11-17)
  [957] Improving the historic town of Melksham - (2006-11-30)
  [977] Melksham and Norwich - (2006-12-10)
  [1117] Newport Male Voice Choir - (2007-03-24)
  [1137] Wiltshire Circles - (2007-04-07)
  [1177] Sorting out for a site map - (2007-05-05)
  [1206] Where and When - can you place the picture? - (2007-05-27)
  [1266] Party in the Park - (2007-07-14)
  [1271] Till the cows come home - (2007-07-19)
  [1330] While waiting for Melksham Post Office - (2007-09-02)
  [1341] Moving to Melksham? Househunting map. - (2007-09-09)
  [1343] Melksham Laundrette - (2007-09-09)
  [1360] Asda in Melksham - Welcome or not? - (2007-09-21)
  [1368] Getting the local voice heard - (2007-09-26)
  [1436] A little touring help during a business trip to England - (2007-11-18)
  [1928] Melksham Oak Community School, Melksham, Wiltshire - (2008-12-07)
  [1977] Going round the block - (2009-01-04)
  [1986] Walk to Bowerhill - (2009-01-10)
  [2008] The Month Ahead - What is happening in Melksham - (2009-01-25)
  [2043] Confidence, Customer Service and Tourism in Melksham - (2009-02-15)
  [2064] East of Melksham Countryside - (2009-03-02)
  [2066] Melksham Industrial - (2009-03-04)
  [2142] Riverside Development - (2009-04-26)
  [2168] In honour of the photograph, I present ... a walk from Reybridge to Lacock - (2009-05-10)
  [2175] Melksham in pictures - (2009-05-11)
  [2253] Walks in and around Melksham, Wiltshire - (2009-06-21)
  [2262] History is not always pretty - (2009-06-30)
  [2297] Standing on the corner, Melksham Carnival - (2009-07-19)
  [2329] Great to be in Melksham - (2009-08-08)
  [2349] Businesses effected by road works in Melksham - (2009-08-11)
  [2480] Pantomimes around Melksham - 2009/2010 season - (2009-10-28)
  [2497] Brown horses in Melksham - (2009-11-08)
  [2528] Melksham Christmas Lights - (2009-12-05)
  [2585] Consultation in Melksham, on Melkshams future - (2010-01-17)
  [2588] Freddies Wood and the K and A Canal - (2010-01-17)
  [2665] Early Spring walk in Melksham - (2010-03-07)
  [2691] New brochures for the Melksham area - (2010-03-24)
  [2708] The bull on the footpath - (2010-04-04)
  [2716] Melksham in Pictures - (2010-04-10)
  [2739] Melksham Scouts - (2010-04-25)
  [2829] Dauncey Gardens, Melksham - (2010-06-27)
  [2854] Melksham Food and Drink Fair and Town Crier Competition - (2010-07-04)
  [2950] Camilla, Duchess of Cornwall, turns first sod in Melksham Link Canal - (2010-09-09)
  [3023] Autumn walk from Bowerhill - (2010-10-31)
  [3050] Views of Melksham - November 2010 - (2010-11-13)
  [3209] Seeing Electricity Pylons near Melksham - (2011-03-21)
  [3227] Her favourite store - (2011-04-02)
  [3232] Around and about Melksham in more pictures - (2011-04-05)
  [3248] What have these pictures in common? - (2011-04-16)
  [3258] Morning in Melksham - (2011-04-23)
  [3266] Easter on the Canal - near Melksham, Wiltshire - (2011-04-26)
  [3305] Getting away from the madding crowd - an intercontinental journey - (2011-05-27)
  [3337] Home Grown Pigs, near Melksham Station - (2011-06-26)
  [3389] Plenty to do in Melksham - (2011-08-13)
  [3470] Currently pictured in Melksham - (2011-10-09)
  [3499] Images of Melksham - (2011-10-29)
  [3502] Sunday Evening ... newest and oldest Melksham pictures - (2011-10-30)
  [3507] Melksham Forward - meeting summary and pictures - (2011-11-04)
  [3520] Quintessentially English - scenes from our Wiltshire town - (2011-11-14)
  [3525] Melksham has a heart - come and see the pictures. Sunday, 11 to 3, Assembly Hall - (2011-11-18)
  [3526] Melksham has a Heart - Montage picture for sale - (2011-11-20)
  [3543] Some different pictures from Melksham - (2011-12-07)
  [3569] Images of the new year in Melksham - (2012-01-05)
  [3605] Snow comes to Melksham, Wiltshire - pictures - (2012-02-10)
  [3644] The way of the Prioress - Melksham history pictured today - (2012-03-09)
  [3646] Exploring Melksham with a film maker - (2012-03-09)
  [3647] Along the brook - East Melksham to Melksham - (2012-03-10)
  [3656] TrainWest 2012 - 14th and 15th April, Melksham, Wiltshire - (2012-03-16)
  [3657] Basham Festival, Melksham, early August 2012 - a welcome - (2012-03-16)
  [3659] Welcome to Melksham - our new communities - (2012-03-18)
  [3692] Deeper than Art - An exhibition of the tattoo Canvas - Melksham - (2012-04-10)
  [3697] Events in Melksham - read all about them, and tell us about yours - (2012-04-15)
  [3703] A Museum for Melksham History. Open from 12th May 2012. - (2012-04-21)
  [3704] The Bowerhill Villager - a newsletter for Bowerhill, Melksham - (2012-04-22)
  [3712] Some unpublished and historic pictures - Museum of Melksham - (2012-04-28)
  [3720] Melksham ATC - freedom of the town - (2012-05-05)
  [3735] A walk around Melksham this morning. Can you place all of these? - (2012-05-17)
  [3744] Short Web Addresses for Melksham - (2012-05-30)
  [3771] Fine evening, country walk from Melksham - pictures - (2012-06-21)
  [3822] Town Clean - Melksham - (2012-07-29)
  [3837] Evening behind Melksham Spa - (2012-08-12)
  [3864] Guest Guide for Well House Manor and Melksham - (2012-09-18)
  [3869] How have Melksham shops changed in 60 years? - (2012-09-24)
  [3897] Autumn scenes from Melksham - (2012-10-16)
  [3944] Melksham Christmas Lights, 2012 - (2012-12-05)
  [3949] Melksham Spa from Woolmore Farm - (2012-12-09)
  [3960] Picture - between Lacock and Melksham - (2012-12-21)
  [3962] Melksham welcomes visitors - new blue plaque trail and more - (2012-12-27)
  [4084] New Pictures - Melksham Pack Horse Bridge - (2013-05-12)
  [4119] Melksham - Flower Town - (2013-06-20)
  [4141] My pictures of Melksham Carnival, 13th July 2013 - (2013-07-14)
  [4145] After the storm - (2013-07-29)
  [4151] Tell me a bit about Melksham - (2013-08-10)
  [4169] Around and about - Melksham - (2013-09-08)
  [4357] Seeing Christmas Coming to Melksham - (2014-12-20)
  [4701] Pretty at the station too - (2016-07-06)

H999 - Additional PHP Material
  [54] PHP and natural sorting - (2004-09-19)
  [239] What and why for the epoch - (2005-03-08)
  [320] Ordnance Survey - using a 'Get a map' - (2005-05-22)
  [322] More maps - (2005-05-23)
  [337] the array returned by preg_match_all - (2005-06-06)
  [372] Time calculation in PHP - (2005-07-08)
  [468] Stand alone PHP programs - (2005-10-18)
  [483] Double Dollars in PHP - (2005-11-02)
  [493] Running a Perl script within a PHP page - (2005-11-12)
  [563] Merging pictures using PHP and GD - (2006-01-13)
  [603] PHP - setting sort order with an associative array - (2006-02-13)
  [665] PHP Image viewing application - (2006-04-01)
  [687] Presentation, Business and Persistence layers in Perl and PHP - (2006-04-17)
  [789] Hot answers in PHP - (2006-07-02)
  [806] Check your user is human. Have him retype a word in a graphic - (2006-07-17)
  [822] PHP - a team member leaves - (2006-08-04)
  [839] Reporting on the 10 largest files or 10 top scores - (2006-08-20)
  [917] Syntax checking in PHP - (2006-11-07)
  [937] Display an image from a MySQL database in a web page via PHP - (2006-11-22)
  [1010] Dates, times, clickable diarys in PHP - (2006-12-28)
  [1020] Parallel processing in PHP - (2007-01-03)
  [1053] Sorting people by name in PHP - (2007-01-26)
  [1104] Drawing dynamic graphs in PHP - (2007-03-09)
  [1194] Drawing hands on a clock face - PHP - (2007-05-19)
  [1270] PHP Standalone - keyboard to screen - (2007-07-18)
  [1389] Controlling and labelling Google maps via PHP - (2007-10-13)
  [1390] Converting from postal address to latitude / longitude - (2007-10-13)
  [1391] Ordnance Survey Grid Reference to Latitude / Longitude - (2007-10-14)
  [1485] Copyright and theft of images, bandwidth and members. - (2007-12-26)
  [1505] Script to present commonly used images - PHP - (2008-01-13)
  [1519] Flipping images on your web page - (2008-01-26)
  [1623] PHP Techniques - a workshop - (2008-04-26)
  [2073] Extra PHP Examples - (2009-03-09)
  [2215] If nothing, make it nothing. - (2009-06-02)
  [2684] Exception handling in PHP - (2010-03-18)
  [3118] Arrays of arrays - or 2D arrays. How to program tables. - (2011-01-02)
  [3210] Catchable fatal error in PHP ... How to catch, and alternative solutions such as JSON - (2011-03-22)
  [4655] Image indexer / thumbnail display scripts in PHP - (2016-02-25)

H106 - PHP - Arrays
  [409] Functions and commands with dangerous names - (2005-08-11)
  [773] Breaking bread - (2006-06-22)
  [832] Displaying data at 5 items per line on a web page - (2006-08-14)
  [1116] PHP adding arrays / summing arrays - (2007-03-23)
  [1199] Testing for one of a list of values. - (2007-05-22)
  [1614] When an array is not an array - (2008-04-17)
  [2274] PHP preg functions - examples and comparision - (2009-07-08)
  [2915] Looking up a value by key - associative arrays / Hashes / Dictionaries - (2010-08-11)
  [2920] Sorting - naturally, or into a different order - (2010-08-14)
  [3004] Increment operators for counting - Perl, PHP, C and others - (2010-10-18)
  [3379] Sorting data the way YOU want it sorted - (2011-08-05)
  [3534] Learning to program in PHP - Regular Expression and Associative Array examples - (2011-12-01)
  [4068] Arrays in PHP - contain different and even mixed data types - (2013-04-24)
  [4072] Splitting the difference with PHP - (2013-04-27)
  [4244] Disambiguation - PHP List - (2014-03-07)


Back to
Easy selection of multiple SQL conditions from PHP
Previous and next
or
Horse's mouth home
Forward to
Santa on the train to Melksham
Some other Articles
Connecting to MySQL 5 from PHP on Mac OSX Leopard
From Sunday to Monday, from Melksham to the Balkans
What makes our courses special?
Santa on the train to Melksham
More PHP sample and demonstration programs
Easy selection of multiple SQL conditions from PHP
Upgrade Mac OSX to Leopard, Web Server Apache httpd config lost
Question on division (Java) - Also Perl, PHP, Python ...
Refa Tandoori Indian Restaurant, Melksham
An answer to a student asking 'Help'
4759 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96 at 50 posts per page


This is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price.

Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).

You can Add a comment or ranking to this page
Hello. I'm Graham Ellis. If you have a question about the hotel, please ask me or

 

then book here

© WELL HOUSE CONSULTANTS LTD., 2021: 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/mouth/1451_Mor ... grams.html • PAGE BUILT: Sun Oct 11 16:07:41 2020 • BUILD SYSTEM: JelliaJamb