On March 25, 2002 01:50, you wrote:
> HI,
>
>         I have a functino write in c, like as:
>
> void addvalue ( int a, int b, int *c )
> {
>   *c = a + b;
> }
>
>        in php
>
> <?
>
>   phpinclude ("alexlib");
>   addvalue ( 1, 2, c );
>   print ( "Value c = $c ");
>
> ?>
>
>     what the procedure to make this ?

  To briefly answer your question:

  You could write code like this:

  function av ($a, $b, &$c) {
     $c = $a + $b;
  }
  
  For more information, review the section on References
  and Functions in the PHP manual.

  --zak

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to