PHP Classes

File: documentation/includes/functions.php

Recommend this page to a friend!
  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: Update of documentation/includes/functions.php
Date: 1 year ago
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);
    }