Menu

[r837]: / trunk / php-java-bridge / tests.mono+net / stack.php  Maximize  Restore  History

Download this file

13 lines (9 with data), 242 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
<?php require_once("mono/Mono.inc");
$s = new Mono('System.Collections.Stack');
$s->Push('Hello World');
$s->Push('Mono');
if ($s->Contains('Mono')) {
print "Works like a perfect darling\n";
}
print $s->Pop() . ' ' . $s->Pop() . "\n";
?>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.