1
0
mirror of https://github.com/php/web-php.git synced 2026-04-29 09:53:12 +02:00

Add main slides

This commit is contained in:
Rasmus Lerdorf
1998-10-21 23:44:28 +00:00
parent 5a18d035ac
commit 2424277ad8
58 changed files with 1371 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
<?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";?>