Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the functionality of the function html entities?

Answers were Sorted based on User's Feedback



What is the functionality of the function html entities?..

Answer / sunil biyani

Convert all applicable characters to HTML entities (PHP 3,
PHP 4 , PHP 5)

string htmlentities ( string string [, int quote_style [,
string charset]] )

Is This Answer Correct ?    11 Yes 0 No

What is the functionality of the function html entities?..

Answer / vijaya

htmlentities will convert all applicable characters to HTML
entities.

Is This Answer Correct ?    6 Yes 0 No

What is the functionality of the function html entities?..

Answer / tushar kumar kundan

The htmlentities() function converts characters to HTML
entities.
==============================================================
Optional. Specifies how to encode single and double quotes.

The available quote styles are:

* ENT_COMPAT - Default. Encodes only double quotes
* ENT_QUOTES - Encodes double and single quotes
* ENT_NOQUOTES - Does not encode any quotes
=============================================================
<?php
$str = "Jane & 'Tarzan'";
echo htmlentities($str, ENT_COMPAT);
echo "<br />";
echo htmlentities($str, ENT_QUOTES);
echo "<br />";
echo htmlentities($str, ENT_NOQUOTES);
?>
==========================================================
the output
Jane & 'Tarzan'
Jane & 'Tarzan'
Jane & 'Tarzan'

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More PHP Interview Questions

What is is_null() in php?

0 Answers  


Which is useful for method overloading?

0 Answers  


Explain the difference between urlencode and urldecode?

0 Answers  


Is php a programming language?

0 Answers  


Tell me what sized websites have you worked on in the past?

0 Answers  


How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain

0 Answers  


Which function is used in php to count the total number of rows returned by any query?

0 Answers  


What is put method in php?

0 Answers  


How do I find out the number of parameters passed into function9?

0 Answers  


What is a php tag?

0 Answers  


Tell me what is the use of "enctype" attribute in a html form?

0 Answers  


What is a collection in php?

0 Answers  


Categories