Month String to Numeric?


Posted on 16th Feb 2014 07:03 pm by admin

Hi guys,

Given a month as a string, is there a simple way to find the numeric representation of said month?

Did you know?Explore Trending and Topic pages for more stories like this.
I've used a switch statement but I'm wondring if there is a more elegant way of doing it?

Thanks in advance,
No comments posted yet

Your Answer:

Login to answer
90 Like 29 Dislike
Previous forums Next forums
Other forums

Not "Just Another" MMORPG - text based.
Hello,

I've been learning MySQL and PHP for the last 2-3 years.
Though, I've had long paus

PHP Multiples of 2, Show posts...not working (wordpress)
I have been using this code to show div.example with 6 li columns inside it, each li is a post with

Removing Title From database problem
Hi again ! i am having an issue with updating database. When i update any price of a title it remove

urldecode question
How would I format this line of code properly?

<?php echo urldecode($_GET['Title']); ?

Posting to another Site?
I have software that people install.
When they install it, is there a way to make it post their d

Need help with an email blocker for a guessbook
I am new with php and here is a simple guessbook page but I am being hit with spam from a group of t

Simple email form - Newbie
Hello all,

First time poster!

I've been asked to create a simple HTML form that submit

A problem with my GD class
Hello,

I created a nice (and simple for now) GD class.
The problem is , it works great on

Comparing Values
Hi
I'm reading data from a database and this seems to work OK.

Each system has an associat

Why does this file not return file names that start with numbers?
This file returns a list of filenames to help populate a drop down in my form. For some reason it ig

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash