Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions php/array_push.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"author": "emrtnm <emrtnm@gmail.com>",
"title": "PHP'de array_push() Fonksiyonu",
"name": "array_push",
"syntax": "array_push ( array $array , $values) : int",
"description": "Belirtilen diziye yeni bir eleman ekler.",
"compatibilities": [
"php 4",
"php 5",
"php 7"
],
"params": [
{
"name": "$array",
"type": "array",
"description": "Elemanın ekleneceği dizi",
"required": true
},
{
"name": "$values",
"type": "array",
"description": "Diziye eklenecek yeni değer",
"required": true
}
],
"examples": [
{
"code": "<?php\n\n$data = [1,2,3,4,5];\narray_push($data, 6);\n\n?>",
"description": "$data dizisine yeni bir değer ekleyelim."
},
{
"code": "<?php\n\n$data = [1,2,3,4,5];\narray_push($data, [6,7,8]);\n\n?>",
"description": "$data dizisine yeni bir dizi ekleyelim."
}
],
"return": {
"type": "int",
"text": "Dizinin eleman sayısını döndürür."
},
"deprecated": false
}