iantearle.com

Humanise

My personal humanisation functions written in PHP and available easily in Expanse CMS. These handy little functions will return humanised numbers and words given a computerised string.

{ordinal:3}

Will produce:

{ordinal:3}

{naturalDay:yesterday}

{naturalDay:yesterday}

{naturalDay:now}

{naturalDay:now}

{naturalDay:tomorrow}

{naturalDay:tomorrow}

{naturalTime:time()-rand(0, 1440)}

{naturalTime:time()-rand(0, 1440)}

{fileSize:123456789}

{fileSize:123456789}

{intword:123456789}

{intword:123456789}

If you would like to check out the class, head on over to GitHub https://github.com/iantearle/Humanise-PHP.

Posted On: Thursday, August 8th, 2013 @ 4:40 pm by Ian Tearle


0 Comments

There are no comments on this entry. You should add one below.

Leave a comment

Be kind

If you would like to discuss anything about this post, please be polite and add your comments below.


 
 

Additionally

No HTML is allowed. All links, and new lines will be automagically converted to HTML for you.
Notice to spammers, all links will be sanitized with rel="nofollow".


Contact Me

Get In Touch

If you would like to discuss anything about your next project please drop me a line.


 

Prices

Projects start at £99.00 per month
We normally book 2–3 months in advance.

Additionally

No matter how small your project is, or if the prices above scare you, please do get in touch, I shall always listen and will advise freely alternative ideas or solutions. If you are a charity, let's talk!


Find Me On