Services_W3C_CSSValidator
[ class tree: Services_W3C_CSSValidator ] [ index: Services_W3C_CSSValidator ] [ all elements ]

Source for file validate_fragment.php

Documentation is available at validate_fragment.php

  1. <?php
  2. /**
  3.  * Example file demonstrating how to validate a CSS fragment.
  4.  *
  5.  * PHP version 5
  6.  *
  7.  * @category Web_Services
  8.  * @package  Services_W3C_CSSValidator
  9.  * @author   Laurent Laville <pear@laurent-laville.org>
  10.  * @license  http://www.opensource.org/licenses/bsd-license.php BSD
  11.  * @version  CVS: $id$
  12.  * @link     http://pear.php.net/package/Services_W3C_CSSValidator
  13.  * @since    File available since Release 0.1.0
  14.  */
  15.  
  16. ini_set('display_errors'true);
  17. require_once 'Services/W3C/CSSValidator.php';
  18.  
  19. $r $v->validateFragment('ul.man-side_top,
  20. ul.man-side_up,
  21. ul.man-side_download {
  22.     margin-top: 0.5e;
  23.     margin-bottom: 0.5em;
  24.     margin-left: 0.7em;
  25.     padding-left: 0.7em;
  26. }');
  27.  
  28. echo '<pre>';
  29. echo '</pre>';
  30. ?>

Documentation generated on Fri, 23 Nov 2007 13:00:08 -0500 by phpDocumentor 1.4.0. PEAR Logo Copyright © PHP Group 2004.