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?

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

FlashVar function how to insert variables
Hi guys. Im new in this forum and also new in php programming. Can you help me about this code?
<

why aint this working?
i have this code:

Code: $num = 250;
$count = ($num - $rcount);

echo $rc

Can I use a loop
Hi buddies!

Once again with my doubts here.

Right now I am using this sql stat

tell csv import script to ignore blank rows?
Hi i have the below script but i get an error if a row is blank ie a return in the csv file at the e

Help Optimizing code
Good Morning,

I wrote a small import function for a website of mine and I know there has to b

Multiple upload and Resize
I would like some help on my script I have the for my index.php

////

<html&

Struct/union and scope problem!
HI all , I have
Code: in header.h typedef struct Node Link; /* ---------

User feedback after MySQL query has been executed
Hi all, I've just registered on PHPFreaks because I've got a question that I simply can't work out b

Variable Clash
In the past I've had variables clash. For example:

Code: <?php
$c = 5;
$ca

Javascript using window.location seems to lose state
Not sure what forum so let me know if I'm in the wrong place. I have a main window with a ajax grid

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