Archive | Gdevelop RSS feed for this section
‘Variable variables’ and array syntax ambiguity in PHP

‘Variable variables’ and array syntax ambiguity in PHP

In PHP it’s possible to define variable variables (variables with names that are set and used dynamically) using ‘$$’.

Read full storyComments { 0 }
Bash script to generate MD5 hashes

Bash script to generate MD5 hashes

An example of a simple Bash script to generate random MD5 hashes and optionally save them to a file.

Read full storyComments { 0 }
Alphabetical For and Foreach Loops in PHP

Alphabetical For and Foreach Loops in PHP

Combining a for loop with PHP’s chr() function, or a foreach loop with PHP’s range() function, you can loop through the entire alphabet or any subset thereof.

Read full storyComments { 2 }