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:
Executable
+20
@@ -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";?>
|
||||
Reference in New Issue
Block a user