Programming Leftovers
-
Rust Basics Series #6: Conditional Statements
You can control the flow of your program by using conditional statements. Learn to use if-else in Rust.
-
Hello World in Python vs Java
A simple application that prints nothing more than the words ‘Hello World’ is the seminal start to learning any programming language.
Furthermore, the relative verbosity and expressiveness with which a given language prints these eleven Unicode characters has become a popular ‘flex’ between platform advocates.
Python and Java developers often go toe-to-toe on the ‘Hello World’ debate, which is why a thorough comparison of how to write ‘Hello World’ in the two languages is necessary.
-
Split comma delimeted string using the php explode() function and output results
To split a comma delimited string using PHP we can use the explode() function
The explode() function breaks the string in to an array, which is then assigned to a variable. We then use a foreach loop to output the results / elements.