Pramod T P

Search
Skip to content
  • Home
  • PHP
  • WordPress
  • Linux
  • Magento
  • My SQL
  • Profile
  • comments

Daily Archives: May 22, 2012

PHP

money_format()

May 22, 2012 Pramod T P

It formats a number as a currency string

Example

<?php
echo money_format(1234.56,2);
?>

Output

1234.56

FunctionsPHPString
PHP

metaphone()

May 22, 2012 Pramod T P

It calculate the metaphone key of a string

Example

<?php
echo metaphone(“phpcode”);
?>

Output

FPKT

FunctionsPHPString
PHP

md5()

May 22, 2012 Pramod T P

It calculates the md5 hash of a string

Example

<?php
echo md5(“test”);
?>

Output

098f6bcd4621d373cade4e832627b4f6

FunctionsPHPString
PHP

md5_file()

May 22, 2012 Pramod T P

It calculates the md5 hash of a given file

Example

<?php
echo md5_file(“test.txt”);
?>

Output

be6f273c2ae6f2740e395f525bf8b645

FunctionsPHPString
PHP

ltrim()

May 22, 2012 Pramod T P

It strips whitespace from the beginning of a string

Example

<?php
echo ltrim(” phpcode”);
?>

Output

phpcode

FunctionsPHPString
PHP

localeconv()

May 22, 2012 Pramod T P

It returns numeric formatting information

Example

<?php
print_r(localeconv());
?>

FunctionsPHPString
PHP

levenshtein()

May 22, 2012 Pramod T P

It calculate Levenshtein distance between two strings

Example

<?php
echo levenshtein(“phpcode”,”phpcodez”);
?>

Output

1

FunctionsPHPString
PHP

lcfirst()

May 22, 2012 Pramod T P

It make a string’s first character lowercase

Example

<?php
echo lcfirst(“PHPcode”);
?>

Output

pHPcode

FunctionsPHPString
PHP

join()

May 22, 2012 Pramod T P

Its an alias of implode() and joins array elements with a string

Example

<?php
$arry = array(“PHP”,”HTML”,”JS”);
echo join(“,”,$arry);
?>

Output

PHP,HTML,JS

FunctionsPHPString
PHP

implode()

May 22, 2012 Pramod T P

It joins array elements with a string

Example

<?php
$arry = array(“PHP”,”HTML”,”JS”);
echo implode(“,”,$arry);
?>

Output

PHP,HTML,JS

FunctionsPHPString

Posts navigation

← Previous 1 … 4 5 6 Next →

Zend | Magento Certified PHP | eCommerce Architect

For Latest Updates
Visit phpcodez.com

Categories

Recent Posts

  • Regular expression
  • preg_match
  • Redirect root domain to a subdomain .htaccess
  • Redirect root domain to a subfolder .htaccess
  • Force SSL htaccess
May 2012
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
28293031  
« Apr   Jun »

Recent Comments

togel online's avatartogel online on How to terminate the current s…
business funding's avatarbusiness funding on compare two strings – ja…
unsecured loans uk's avatarunsecured loans uk on Function to add an element int…
treating back pain's avatartreating back pain on Submit HTML form to pop up pag…
Pura Cleanse's avatarPura Cleanse on Add the block "Based on y…
  • RSS - Posts
Blog at WordPress.com.
Pramod T P
Create a free website or blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • Pramod T P
    • Already have a WordPress.com account? Log in now.
    • Pramod T P
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...