Pramod T P

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

Daily Archives: May 22, 2012

PHP

htmlspecialchars()

May 22, 2012 Pramod T P

It convert special characters to HTML entities

Example

<?php
echo htmlspecialchars(“<a href=’http://phpcodez.comt’>phpcode</a>&#8221;);
?>

Output

<a href=’http://phpcodez.comt’>phpcode</a&gt;

FunctionsPHPString
PHP

htmlspecialchars_decode()

May 22, 2012 Pramod T P

It convert special HTML entities back to characters

Example

<?php
echo htmlspecialchars_decode(“<p>php &gt”);
?>

Output

php >

FunctionsPHPString
PHP

htmlentities()

May 22, 2012 Pramod T P

It convert all applicable characters to HTML entities

Example

<?php
echo htmlentities(“<a>PHP<a> <br /> <p>HTML</p>”);
?>

Output

<a>PHP<a> <br /> <p>HTML</p>

FunctionsPHPString
PHP

html_entity_decode()

May 22, 2012 Pramod T P

It convert all HTML entities to their applicable characters

Example

<?php
echo html_entity_decode(“PHP &amp; HTML”);
?>

Output

PHP & HTML

FunctionsPHPString
PHP

hex2bin()

May 22, 2012 Pramod T P

It decodes a hexadecimally encoded binary string

Example

<?php
echo hex2bin(“d706c6520686578206461”);
?>

FunctionsPHPString
PHP

hebrevc()

May 22, 2012 Pramod T P

It convert logical Hebrew text to visual text with newline conversion

FunctionsPHPString
PHP

hebrev()

May 22, 2012 Pramod T P

It converts logical Hebrew text to visual text

FunctionsPHPString

Posts navigation

← Previous 1 … 5 6

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.
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