Category: php functions

.

StripTags() php function

Striptags() is a php function that literally strips HTML tags out of files that are streamed in to php with a function like file_get_contents()


<?php


$x = file_get_contents(''test_file.html'); // test_file has <h1> test me now </h1>

$x = strip_tags($x)

echo $x;

// Will output: test me now



?>



Author: D.Shaun Morgan

die The die function Die('') is a very useful php function. You can place "die anywhere in a script that want that script to terminate. It also provides a bit of f

php functions php

addslashes string addcslashes(string $str , string $charlist) How to use addslashes<?php $SlashedStri

substr count How to use substr_count() int substr_count ( string $haystack , string $needle [, int $offset= 0 [, int $length ]] ) s

parse str How to use parse_str() parse_str(string $str [,array &$arr ])  <?php $string = 'firstVar=first&

.
 

Leave a Comment

strip_tags

Name:      | Email:      | Website:

Comment:


captcha

Enter The Above Security Code: