Another 48 hours (most probable) needs to wait. Thank them very much who is thinking ‘I am a bullshit’. Because their concepts and thinking is my inspiration. Please don’t make anything more complex matter for me. Pray to GOD to make this winter more cooled.
Blog Posts
Don’t.. don’t. Don’t compete me with other through your eyes. Just judge somebody with their way to become success. The way.. not the whole thing. There is no competition in this world.? Compete with someone’s way to complete their goal. Please find the way of others which way they are walking.
To show any specific length of a strings in PHP we can use the following functions. function excerpt($str, $length=10, $trailing=’…’) { /* ** $str -String to truncate ** $length – length to truncate ** $trailing – the trailing character, default: “…” */ // take off chars for the trailing $length-=mb_strlen($trailing); if (mb_strlen($str)> $length) { // string exceeded length, truncate and add trailing dots return mb_substr($str,0,$length).$trailing; } else { // string was already short enough, return the string $res = $str; …
To remove all the HTML tags from your PHP string we can easily use strip_tags ($YourStrings) or preg_replace ('/<[^>]*>/', '', $YourStrings) [adsense_id=”2″]
Sometimes we need to decode HTML entities from any specific strings in PHP. Basically it’s more used for retrieve HTML entities from a MySQL cell.? To Convert all HTML entities to their applicable characters there is one function available that is called html_entity_decode(). html_entity_decode($YourStrings) Example: <?php $orig?=?"I'll?"love"?the?<b>girl</b> very much"; $a?=?htmlentities($orig); $b?=?html_entity_decode($a); echo?$a;?//?I'll?"love"?the?<b>girl</b> very much echo?$b;?//?I'll?"love"?the?<b>girl</b> very much?>