User Tools

Site Tools


programmieren:grundlagen:datentypen

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
programmieren:grundlagen:datentypen [2026/07/31 09:22] – created adminprogrammieren:grundlagen:datentypen [2026/09/17 16:06] (current) – [PHP] iterable admin
Line 1: Line 1:
-datentypen+====== Datentypen ====== 
 + 
 +===== PHP ===== 
 + 
 +  * **string**. String of characters so basically just a text. Defined by ''. 
 +  * **int**. Whole numbers. Litterally just numbers without a comma. 
 +  * **float**. Decimal numbers. Litterally just numbers with a comma. 
 +  * **bool**. True or False value. Defined by true or false. Thingy can be truthy and falsy like 0 and 1. 
 +  * **array**. List of multiple values. Can contain all sorts of things like Objects, strings, numbers. Index can be named or just numbers. 
 +  * **objects**. Objects can be all sorts of things like value Objects. But also could be a SQL query or whatever. 
 +  * **null** The defined absence of a value. 
 +  * **iterable** Iterable is a bit weird, its basically extended by anything that can be iterated through, obvious examples would be arrays and Collections but also Entities can be iterated through. Extending iterable makes it so you can run things like foreach on that data. 
programmieren/grundlagen/datentypen.1785482562.txt.gz · Last modified: by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki