Tag: PHP

Loops and conditional statements in PERL in comparison with PHP

Work with loops like if - else, do - while, for, foreach in PERL is very flexible. On the other hand, this flexibility can result into the complexity. In PHP is situation with loops more simplified. Conditional statements are from my perspective very the same. Let's find out what are the differences.

Arrays in PERL in comparison with PHP

Work with arrays in PHP is quite simple. All about arrays in PHP can be found in official documentation. In PERL is the situation a little bit more complicated. But, on the other hand, after first slight look into the PERL code, you can see if it's associative array or indexed array. In PHP, array variable notation is the same for both array types.

PHP class generating CAPTCHA pictures

Captcha is an acronym based on the word "capture" and standing for "Completely Automated Public Turing test to tell Computers and Humans Apart". Captcha is therefore very useful when we want to filter and collect only data inserted by humans only.

PHP class generating RSS feed

RSS (Rich Site Summary) is a format for delivering regularly changing web content. Many weblogs and other online publishers syndicate their content as an RSS Feed to whoever wants it. RSS solves a problem for people who wants to easily stay informed by retrieving the latest content from the sites you are interested in.

PHP a abstraktné triedy

V minulom článku som sa zaoberal dedením v triedach, potom v ďalšom riadením prístupu do tried a na tieto články chcem nadviazať problematikou abstraktných tried.

PHP a riadenie prístupu do tried v objektovo-orientovanom kóde

V minulom článku som sa zaoberal dedením pri triedach a na konci som spomenul, že ak programátor neuvedie inak, tak sú všetky premenné a metódy nastavené na typ "public". Toto však môže byť pri určitých situáciách problém a preto je potrebné niektoré premenné alebo metódy pred prístupom zvonku chrániť.

PHP a dedenie v objektovo-orientovanom kóde

Objektovo-orientované programovanie (ďalej OOP) je modlou dnešných dní. Pre mnohých kóderov môže byť prechod z procedurálneho štýlu na OOP veľmi nepríjemný. Nevyhol som sa tomu ani ja!


Share, follow or connect with me.