PHP Function for Colour Text to HEX Code

In a PHP project database, there was a text filed for colours that should be shown as a background colour of a box in front of the product name. Stored colours were like these: Blue BLUE Tomato Beech Flame Red Salmon … That some of them were not a standard colour for HTML, I searched the Internet for the colour to the HEX code table, and I added some non-standard but recurrent colours on that project like: Wood Charcol Gun Metal United Nations Blue … to this PHP function, you can add yours <?php function colourtexthex($colour_text) { // colour text to HEX code $colours = array ( ‘aliceblue’ => ‘F0F8FF’, ‘aluminium’ => ‘848789’, ‘antiquewhite’ => ‘FAEBD7’, ‘aqua’ => ’00FFFF’, ‘aquamarine’

Princes Highway

I travel whether walking or driving

When I arrived in Australia, It took one week to adopt my mind with this truth that people drive in the correct direction, and they are not criminals. Here, the cars steering wheel is in the right, and the cars drive on the left side of the streets. When I ride a taxi for the first time, I was pushing the brake pedal. I expected to have a car crash anytime. Step by step, my mind adapted itself to new rules, and now, I think I am ready to drive again. It is the truth but funny that I should face an 18-year challenge in 44. I should take another driving license! Before coming to Australia, I read that I


Southern hemisphere and new experiences

We came to the southern hemisphere of the earth, where I was showing it on  the geographical sphere in my childhood and was asking, “The people here do not fall?” Here, not only people don’t fall, but also the sun in the north in the noon isn’t an important issue. Here the steering wheel of the cars is in the right, and sometimes, as usual, when I want to pass the street I look at the left side, while the danger is on the right! Here is a paradise for birds, wherever you can find many birds. Many of these birds are new to me, so I am busy by bird watching and enjoying the city. Everything here runs slowly

Antonov-an-140 or Iran-140 Flying Coffin

Flying Coffin Today another passenger plane crashed in Tehran, Iran, near ،Tehran Mehrabad Airport. I wonder why Iranian people should ride these flying coffins. In the last 25 years, more than 200 air accident has happened in Iran. Sanctions and mismanagement are the two main reasons that caused 2000 people to lose their life. Iran-140 or Antovov-an-140 is originally from Ukraine and is assembled in Iran You can find Mehrabad Airport on the map: