Pramod T P

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

Daily Archives: May 21, 2012

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
PHP

count_chars()

May 21, 2012 Pramod T P

It return information about characters used in a string

Example

<?php
echo “<pre>”;
print_r(count_chars(“phpcode”,1));
?>

Output

Array
(
[99] => 1
[100] => 1
[101] => 1
[104] => 1
[111] => 1
[112] => 2
)

FunctionsPHPString
PHP

convert_uuencode()

May 21, 2012 Pramod T P

It Uuencode a string

Example

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

Output

‘<&AP8V]D90“ `

FunctionsPHPString
PHP

convert_uudecode()

May 21, 2012 Pramod T P

It decodes a uuencoded string

Example

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

Output

phpcode

FunctionsPHPString
PHP

convert_cyr_string()

May 21, 2012 Pramod T P

It converts from one Cyrillic character set to another

Example

<?php
echo convert_cyr_string(“phpcode Ã¥”,’w’,’a’);
?>

Output

phpcode

FunctionsPHPString

Posts navigation

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