The following simple function recursively counts to 10, using the static variable $count to know when to stop
Poniższa funkcja rekurencyjnie liczy do 10, używając zmiennej statycznej $licznik, aby wiedzieć, kiedy ma się zatrzymać
Another important feature of variable scoping is the static variable.
Jeszcze jedną ważną rzeczą, związaną z zasięgiem zmiennych jest zmienna statyczna (ang. static variable).
This method accepts two variables: byte array format of the image that is to be added and the static variable representing the file format of the image.
Metoda ta przyjmuje dwie zmienne: format tablicy bajtów obrazu, który ma być dodany i statyczną zmienną przedstawiającą format plików obrazu.
If a static variable is unset() inside of a function, unset() destroys the variable only in the context of the rest of a function.
Zmienna środowiskowa zachowa taką samą wartość jak przed zastosowaniem Jeśli zmienna jest statyczna wewnątrz funkcji unset () niszczy zmienne tylko w kontekście pozostałych funkcji.
Otherwise, dynamically changing the static variable CActiveRecord::db is a better idea.
W przeciwnym przypadku, lepszym pomysłem jest dynamiczna zmiana statycznej zmiennej CActiveRecord::db.
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.
No results found for this meaning.
Synonyms and analogies of "static variable" in English