Sample 1 : addcslashes() Function Usages : 0.5 Priority
Samee \Ullah FerozSample 2 : addslashes() Function Usages : 0.5 Priority
My Name is \"Samee Ullah Feroz\" Understand?Sample 3 : bin2hex() Function Usages : 0.6 Priority
48656c6c6f20576f726c6421Sample 4 : chop() Function Usages : 0.4 Priority
Samee Ullah FerozSamee Ullah Feroz
Sample 5 : chr() Function Usages : 0.7 Priority
éž
î
Sample 6 : chunk_split() Function Usages : 0.6 Priority
Sa|me|e |Ul|la|h |Fe|ro|z|Sample 7 : convert_cyr_string() Function Usages : 0.3 Priority
Hello world! æøåHello world! ƒ.ƒñƒ
Sample 8 : convert_uudecode() Function Usages : 0.7 Priority
14V%M964@56QL86@@1F5R;WH` `Samee Ullah Feroz
Sample 9 : convert_uuencode() Function Usages : 0.7 Priority
14V%M964@56QL86@@1F5R;WH` `Samee Ullah Feroz
Sample 10 : count_chars() Function Usages : 0.3 Priority
FSUaehlmorzSample 11 : crc32() Function Usages : 0.4 Priority
4289894317Sample 12 : echo() Function Usages : 1.0 Priority
samiSample 13 : explode() Function Usages : 0.5 Priority
Array ( [0] => Samee [1] => Ullah [2] => Feroz. [3] => It's [4] => a [5] => beautiful [6] => day. )Sample 14 : fprintf()Function Usages : 0.6 Priority
<html>
<head>
<title>A, B, C, E and F : String Functions in PHP: 5th Day Lecture of PHP</title>
</head>
<body>
<h1 align="center">A, B, C, E And F String Functions In PHP with Priority</h1>
<h2 align="left">Sample 1 : addcslashes() Function Usages : 0.5 Priority</h2>
<?php
$str = addcslashes("Samee Ullah Feroz","U");
#It is used to add slashes before specific character
//Syntax is : addcslashes(string,characters)
echo ($str);
?>
<h2 align="left">Sample 2 : addslashes() Function Usages : 0.5 Priority</h2>
<?php
$str = addslashes('My Name is "Samee Ullah Feroz" Understand?');
#It is used to add slashes before double qoutes.
//Syntax is : addslashes(string)
echo($str);
?>
<h2 align="left">Sample 3 : bin2hex() Function Usages : 0.6 Priority</h2>
<?php
$str = bin2hex('Hello World!');
#It is used to convert value to its Hexadecimal Values
//Syntax is : bin2hex(string)
echo($str);
?>
<h2 align="left">Sample 4 : chop() Function Usages : 0.4 Priority</h2>
<?php
$str = "Samee Ullah Feroz";
echo $str . "<br />";
echo chop($str,"Ullah"); //I am getting Error here
#It is used to remove values from right side
//Syntax is : chop(string,charlist)
?>
<h2 align="left">Sample 5 : chr() Function Usages : 0.7 Priority</h2>
<?php
echo chr(233) . "<br>";
echo chr(158) . "<br>";
echo chr(238) . "<br>";
#It is used to show ASCII Values
//Syntax is : chr(ascii)
?>
<h2 align="left">Sample 6 : chunk_split() Function Usages : 0.6 Priority</h2>
<?php
$str = "Samee Ullah Feroz";
echo chunk_split($str,2,"|");
#It is used to separate characters by given character like I separated by |
//Syntax is : chunk_split(string,length,end)
?>
<h2 align="left">Sample 7 : convert_cyr_string() Function Usages : 0.3 Priority</h2>
<?php
$str = "Hello world! æøå";
echo $str . "<br />";
echo convert_cyr_string($str,'w','a');
#it is used to convert character set to an other
//Syntax is : convert_cyr_string(string,from,to)
?>
<h2 align="left">Sample 8 : convert_uudecode() Function Usages : 0.7 Priority</h2>
<?php
$str = "Samee Ullah Feroz";
// Encode the string
$encodeString = convert_uuencode($str); //here this code will convert your value to a specific code
echo $encodeString . "<br>";
// Decode the string
$decodeString = convert_uudecode($encodeString); #here this code will decode that specific code to your specific value.
echo $decodeString;
#It is used to decoded a string value.
//Syntax is : convert_uudecode(string)
?>
<h2 align="left">Sample 9 : convert_uuencode() Function Usages : 0.7 Priority</h2>
<?php
$str = "Samee Ullah Feroz";
// Encode the string
$encodeString = convert_uuencode($str); //here this code will convert your value to a specific code
echo $encodeString . "<br>";
// Decode the string
$decodeString = convert_uudecode($encodeString); #here this code will decode that specific code to your specific value.
echo $decodeString;
#It is used to encode a string value.
//Syntax is : convert_uuencode(string)
?>
<h2 align="left">Sample 10 : count_chars() Function Usages : 0.3 Priority</h2>
<?php
$str = "Samee Ullah Feroz";
echo count_chars($str,3);
#It is used to show string with all different characters.
//Syntax is : count_chars(string,mode)
?>
<h2 align="left">Sample 11 : crc32() Function Usages : 0.4 Priority</h2>
<?php
$str = crc32("Samee Ullah Feroz");
printf("%u\n",$str);
//crc32() function is used to return a calculate value of a 32-bit CRC (cyclic redundancy checksum) for a string.
#Syntax is : crc32(string)
?>
<h2 align="left">Sample 12 : echo() Function Usages : 1.0 Priority</h2>
<?php
$str = "sami";
#It is used to print the value
//Syntax is : echo(strings)
echo ($str);
?>
<h2 align="left">Sample 13 : explode() Function Usages : 0.5 Priority</h2>
<?php
$str = "Samee Ullah Feroz. It's a beautiful day.";
print_r (explode(" ",$str)); //Need to ask about this error
//It is used to break a string into an array
# explode(separator,string,limit)
?>
<h2 align="left">Sample 14 : fprintf()Function Usages : 0.6 Priority</h2>
<?php
$number = 9;
$str = "Lahore";
$file = fopen("test.txt","w"); // Need to understand this function
echo fprintf($file,"There are %u million dollars in %s.",$number,$str); //38 characters will be printed in text file
echo($str); // limit and $str name
#It is used to write some text in Text file.
//Syntax is : fprintf(stream,format,arg1,arg2,arg++)
?>
</body>
</html>
Post a Comment
Give your reviews about this blog. Leave your comments. what do you think about this post?
Comments Description is given below:
1) I love to read comments, but do not spam.
2) Like this blog and also tweet its posts.
3) You can use some xHTML tags.
4) All Comments are Do Follow, Please try to use blog professionally.
5) Mention Your Name below the comment.
6) You can also suggest for improvement.
7) Do not forget to subscribe Samee Articles blog.
---------------------------------------
Thanks for visiting QWC.Me.
==========================================
For free guidelines contact me on SEO Expert | Samee Ullah Feroz is online there.
==========================================
Best Regards