1
0
mirror of https://github.com/php/web-php.git synced 2026-03-24 15:22:19 +01:00
Files
archived-web-php/apachecon/s_api5.php3
Rasmus Lerdorf 2424277ad8 Add main slides
1998-10-21 23:44:28 +00:00

21 lines
440 B
PHP
Executable File

<?require "header.inc";?>
<h1>Creating an empty array named foo</h1>
<?example(' pval arr;
if (array_init(&arr) == FAILURE) { failed... };
hash_update(symbol_table,"foo",4,&arr,
sizeof(pval),NULL);
');?>
<h1>Create $foo["bar"] = 5</h1>
<?example(' pval entry;
entry.type = IS_LONG;
entry.value.lval = 5;
hash_update(arr.value.ht,"bar",
sizeof("bar"),&entry,sizeof(pval),NULL);
');?>
<?require "footer.inc";?>