Ignore:
Timestamp:
Oct 28, 2008, 3:02:27 AM (12 years ago)
Author:
nico
Message:
  • Add php bindings for 9 functions
  • Modify php bloc headers in samples programs
  • Add list of import/export formats in examples/drivers.php
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca-php/examples/drivers.php

    r3114 r3126  
    11#!/usr/bin/php5
    2 <?
    3 
     2<?php
    43
    54//--- Just for fun ---//
     
    4544echo "\n";
    4645
    47 echo "Available export modules:\n";
     46echo "Available import formats:\n";
     47$list = caca_get_import_list();
     48foreach($list as $format => $name)
     49        echo "* $name ($format)\n";
     50echo "\n";
     51
     52echo "Available export formats:\n";
    4853$list = caca_get_export_list();
    49 foreach($list as $type => $name)
    50         echo "* $name ($type)\n";
     54foreach($list as $format => $name)
     55        echo "* $name ($format)\n";
    5156echo "\n";
    5257
Note: See TracChangeset for help on using the changeset viewer.