You might already know that PHP’s in_array() function matches the string needle case sensitive way. However, today I was needed something that matches in case insensitive way. Before doing it myself, I googled it and I found a ready made solution. It is quite simple. Here it is:
function in_arrayi($needle, $haystack)
foreach ($haystack as $value)
if (strtolower($value) == strtolower($needle))
Please note that this case-insensitive version is, at least, 5 times slower than in_array().
Today I had passed a busy day. At 9.00 am I headed for Dhaka University campus. However, I had to walk most of the path 🙁 as the traffic system disallowed vehicles to the spot for comfortable movements of huge huge crowd. I became lazy and took a few shots only as it was too crowded for photography!
Afternoon, at 3.00pm, I headed to Elephant Road for the Workshop on Photography. It started at huge late. But when it started, it was getting awesome every moments.
Basically, I was the only novice there. All others were advanced photographers. However, they were so friendly and helpful. The main topic was on Depth of Field. Earlier this workshop, I have read many articles, tutorials, blogs on Depth of Field but I could never take it inside of my brain. However, today’s one was exceptional. I believe now I am very confident about Depth of Field of Photography. I made some questions fearing they will treat me as jerk. I wondered, they did not do that. They explained all of my questions in very friendly manner.
The second session of the workshop was about Criticism of photos. A few of us brought photos that were apprised and criticized as per their merit. I can’t believe any criticism can be such friendly and detail!
I have also brought 3 photos. Experts has given their comments, advices and suggestions on my photos that will help me taking better snaps and in post shots processing.
The 3rd session was general questions and answers. Anyone can ask anything regarding photography.
I am very excited that such workshops are going to be arranged biweekly. It means, more great learnings on coming days!