Login   Register  
PHP Classes
elePHPant
Icontem

File: documentation/includes/functions.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Oliver Lillie  >  PHP Video Toolkit  >  documentation/includes/functions.php  >  Download  
File: documentation/includes/functions.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Video Toolkit
Manipulate and convert videos with ffmpeg program
Author: By
Last change: converted hard tabs to spaces
Date: 2013-08-04 21:51
Size: 666 bytes
 

Contents

Class file image Download
<?php
    
    
if(defined('ENT_SUBSTITUTE') === false)
    {
        
define('ENT_SUBSTITUTE''ENT_SUBSTITUTE');
    }
    
    
/**
     * Shortcut function for htmlspecialchars
     *
     * @access public
     * @author Oliver Lillie
     * @param string $value 
     * @param string $quotes 
     * @return void
     */
    
function HTML($value$quotes=ENT_QUOTES)
    {
        return 
htmlspecialchars($value$quotes ENT_SUBSTITUTE'UTF-8');
    }

    
/**
     * shortcut function for json_encode
     *
     * @access public
     * @author Oliver Lillie
     * @return void
     */
    
function JS($value)
    {
        return 
json_encode($value);
    }