T4VN is an online PHP Help community that provides PHP Tutorials, PHP Examples, PHP Scripts, PHP Support
    HOME  |  HOSTING COUPON  |  TEMPLATE  |  PHP SCRIPTS  |  LINK TO US  |  LINK  |  REGISTER | CONTACT
::: Member Login :::
 Username
 Password
 
Forgot your password ?
::: PHP Tutotal :::
  PHP Basic (7)
  PHP Advanced (4)
  PHP Database (2)
  Coding Step By Step (8)
  PHP and AJAX (0)
::: PHP Example :::
  Arrays (1)
  Code Highlighters (3)
  Database Functions (12)
  Date & Time (5)
  E-Mail (6)
  Forms (5)
  Guestbooks (1)
  Logging (2)
  Miscellaneous (10)
  Password Generators (3)
  Randomizers (3)
  String Manipulation (10)
  User Authentication (6)
::: Search On T4VN :::
::: T4VN Statistics :::
  PHP Scripts : 61
  PHP Example : 67
  PHP Tutorials : 21
  PHP News : 93
  Total Coupon : 36
  Other Tutorials :
  Member : 209
  Visitor Online : 3
  Today Visit: 389
  Total Visitor : 262399
  Most Online : 31
::: Sponsored Links :::

PR 4 For This Webpage
Home Today :

Another Auto PHP Function LookUp

Author : GesF

Just pass to the code file or variable to the function and it will automaticaly create a link to php's manual, for every function that matches the php ones.

PHP Example :

<?php

function highlight($code) {

     
// Wrap the code at 80 columns 
     // and ensures we keep a nice layout on the page 
     // $code = wordwrap($code, 80, "<br />", 1); 

    
ob_start();
    
is_file($code) ? @highlight_file($code) : @highlight_string($code);
    
$result_code ob_get_contents();
    
ob_end_clean();

    
$keyword ini_get("highlight.keyword");
    
$manual 'http://www.php.net/manual-lookup.php?lang=en&pattern=';

    
// Matches reserved word
    
$result_code preg_replace('{([w_]+)(s*</font>)(s*<fonts+color="' 
        
$keyword '">s*()}m''<a title="View manual page for \1" href="' 
        
$manual '\1" target="_blank">\1</a>\2\3'$result_code);

}

?>


Other Example
Easy Code Highlighter With Numbers
Display code


::: Resources :::
  Links Directory
  Programming 2 3
  Webmaster 2 3
  Web Design 2 3
  Web Hosting 2 3
  Other Links 2 3
  Asian ShowBiz News
  Teach Seo For You
::: New Templates :::




::: Other Tutorials :::
 Program Design

  Powered By T4VN.NET - Version 2.0 - CopyRight © T4VN.NET 2005-2007