Jump to content
php.lv forumi

masivs no skaitla


Sephy

Recommended Posts

Nu, jā, visas masīva īpašības nav, tomēr atsevišķus simbolus gan tā var dabūt ārā:

String access and modification by character

 

Characters within strings may be accessed and modified by specifying the zero-based offset of the desired character after the string using square array brackets, as in $str[42]. Think of a string as an array of characters for this purpose.

Link to comment
Share on other sites

for ($i = 0; $i <= 31; $i++) {
if ($binarais[$i]==1) echo "<br> binarais nummur $i ir vienads ar viens!!";
}

 

viss stradaa nwm xD. kluda laikam bij tur ka nesaliku atstarpes oO

Edited by Sephy
Link to comment
Share on other sites

×
×
  • Create New...