Pramod T P

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

Daily Archives: May 22, 2012

PHP

quotemeta()

May 22, 2012 Pramod T P

It adds backslashes in front of some predefined characters in a string.

Example

<?php
echo quotemeta(“php(code)'”);
?>

Output

php(code)’

FunctionsPHPString
PHP

quoted_printable_encode()

May 22, 2012 Pramod T P

It convert a 8 bit string to a quoted-printable string

Example

<?php
echo quoted_printable_encode(“php=0Acode”);
?>

Output

php=3D0Acode

FunctionsPHPString
PHP

quoted_printable_decode()

May 22, 2012 Pramod T P

It decodes a quoted-printable string to an 8-bit ASCII string

Example

<?php
echo quoted_printable_decode(“php=0Acode”);
?>

Output

php code

FunctionsPHPString
PHP

printf()

May 22, 2012 Pramod T P

It output a formatted string

Example

<?php
parse_str(“first=php&second=code”);
printf(“%s%s”,$first,$second);
?>

Output

phpcode

FunctionsPHPString
PHP

print()

May 22, 2012 Pramod T P

It outputs a string

Example

<?php
parse_str(“first=php&second=code”);
print $first.$second;
?>

Output

phpcode

FunctionsPHPString
PHP

parse_str()

May 22, 2012 Pramod T P

It parses the string into variables

Example

<?php
parse_str(“first=php&second=code”);
echo $first.$second;
?>

Output

phpcode

FunctionsPHPString
PHP

ord()

May 22, 2012 Pramod T P

It return ASCII value of character

Example

<?php
echo “ASCII value of ‘a’ is “.ord(“a”);
?>

Output

ASCII value of ‘a’ is 97

FunctionsPHPString
PHP

number_format()

May 22, 2012 Pramod T P

It format a number with grouped thousands

Example

<?php
echo number_format(1233.56,2);
?>

Output

1,233.56

FunctionsPHPString
PHP

nl2br()

May 22, 2012 Pramod T P

It inserts HTML line breaks before all newlines in a string

Example

<?php
echo nl2br(“phpncode “);
?>

Output

php
code

FunctionsPHPString
PHP

nl_langinfo()

May 22, 2012 Pramod T P

It returns specific local information.

Windows platforms does not support this function

Example

<?php
echo nl_langinfo($element);
?>

FunctionsPHPString

Posts navigation

← Previous 1 … 3 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
Create a free website or 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...