Skip to content

PHPCodez

Search
  • PHP
  • Magento
  • Javascript
  • HTML
  • My SQL
  • Functions
  • WordPress
  • Plugins
  • Joomla
  • Linux
  • jQuery
  • Profile
  • comments
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
PHP

get_html_translation_table()

May 21, 2012 Pramod T P

It returns the translation table used by htmlspecialchars() and htmlentities()

Example

<?php
print_r (get_html_translation_table(HTML_ENTITIES));
?>

FunctionsPHPString
PHP

fprintf()

May 21, 2012 Pramod T P

It writes a formatted string to a specified output stream

Example

<?php
$fp = fopen(“test.txt”,”w”);
echo fprintf($fp,”%s”,”phpcode”);
?>

Output

7

FunctionsPHPString
PHP

explode()

May 21, 2012 Pramod T P

It splits a string by string

Example

<?php
echo “<pre>”;
print_r(explode(” “,”php jsp asp”));
?>

Output

Array
(
[0] => php
[1] => jsp
[2] => asp
)

FunctionsPHPString
PHP

echo()

May 21, 2012 Pramod T P

It outputs one or more strings

Example

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

Output

phpcode

FunctionsPHPString
PHP

crypt()

May 21, 2012 Pramod T P

It returns a string encrypted using DES, Blowfish, or MD5 algorithms.

Example

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

Output

$1$IPvU1z.J$K0G7fAVaDY7KBRpEJcB62/

FunctionsPHPString
PHP

crc32()

May 21, 2012 Pramod T P

It calculates a 32-bit CRC  for a string

Example

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

Output

975211817

FunctionsPHPString

Posts navigation

← Previous 1 … 44 45 46 … 101 Next →

Beginners' Guide

Recent Posts

  • Upstream sent too big header while reading response
  • Navigate to a Folder from Any Location by Typing a Letter – Linux
  • Magento 2 Admin Content Deployment
  • React vs next JS
  • Disable CAPTCHA Magento 2 Admin Login
  • Difference Between composer.json and composer.lock Files
  • Magento 2 Regenerate URL Rewrites Manually For Categories
  • Magento 2 Regenerate URL Rewrites Manually for Products
  • composer self downgrade

Recent Comments

  • sunny on cgi.force_redirect
  • beats solo 4 on allow_url_include
  • Hairstyles on php end of line
  • penipu on cgi.force_redirect
  • lumi777 link alternatif on cgi.force_redirect

Categories

  • .htaccess (32)
  • Ajax (4)
  • Apache (43)
  • AWS (11)
  • Cookie (4)
  • Database Model (9)
  • Design Pattern (9)
  • Filter (27)
  • General (187)
  • HTML (5)
  • IP.Board (1)
  • Javascript (99)
  • Jetty (3)
  • Joomla (17)
  • jQuery (63)
  • JSON (3)
  • JSP (1)
  • Linux (125)
  • Magento (371)
  • My SQL (74)
  • nginx (4)
  • OOPs (12)
  • Payment Gateway (1)
  • PHP (1,005)
  • Plugins (11)
  • Prototype (1)
  • session (5)
  • Socialengine (1)
  • SQL (69)
  • SVN (17)
  • Uncategorized (11)
  • Vbulletin (11)
  • Wordpress (89)
Proudly powered by WordPress