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

file get contents file_get_contents PHP Function file_get_contents() streams in the content of a files that is passed to it as an argument.<?php

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

ucwords string ucwords(string $mystring) Takes: This function takes a string. Returns: Converts every first lett

echo echo Echo is used in php scripts to output html characters to the screen. echo is one of the most used functions in the php language.

.
 

Leave a Comment

strip_tags

Name:      | Email:      | Website:

Comment:


captcha

Enter The Above Security Code: