*** Date ***

2025-11-30

*** Classes & Objects ***

Dog class:
Woof, woof!
Buddy is eating bones.

Cat class:
Meow!
Whiskers is eating fish.

Meow!
Luna is eating fish.

*** Objects ***

object(Dog)#4149 (1) { ["name"]=> string(5) "Buddy" }

object(Cat)#4151 (1) { ["name"]=> string(8) "Whiskers" }
object(Cat)#4152 (1) { ["name"]=> string(4) "Luna" }

*** Methods ***

Dog class methods: Array ( [0] => __construct [1] => speak [2] => eat [3] => breed )

Cat class methods: Array ( [0] => __construct [1] => speak [2] => eat [3] => breed )

*** Properties ***

Dog class properties: Array ( [name] => )

Cat class properties: Array ( [name] => )

*** Simple class without interface ***

Fruit Name: Apple
Fruit Name: Orange

*** Posts ***

Post Type: page

*** Strings ***

HELLO, WORLD!

*** adding an elemet to an array ***

Array ( [0] => apple [1] => banana [2] => cherry [3] => orange )

*** foreach to loop through an array ***

apple
banana
cherry


*** foreach loop with an associative array ***

Student: Alice, Score: 95
Student: Bob, Score: 88
Student: Charlie, Score: 76
Student: David, Score: 92


*** Nested array system ***


*** Printing the nested array ***
Array ( [employee_id] => 101 [first_name] => John [last_name] => Doe [contact_info] => Array ( [email] => john@example.com [phone] => 555-123-4567 [address] => Array ( [street] => 123 Main St [city] => Anytown [state] => CA [zipcode] => 12345 ) ) [skills] => Array ( [0] => PHP [1] => JavaScript [2] => SQL ) ) Employee >>> ID: 101 , email: john@example.com , street: 123 Main St

*** Skills ***

Array ( [0] => PHP [1] => JavaScript [2] => SQL )
*** Printing the modified nested array: employee info ***
Array ( [employee_id] => 101 [first_name] => Jane [last_name] => Doe [contact_info] => Array ( [email] => john@example.com [phone] => 555-987-6543 [address] => Array ( [street] => 123 Main St [city] => Anytown [state] => CA ) [website] => https://www.jane-doe.com ) [skills] => Array ( [0] => PHP [1] => JavaScript [2] => SQL [3] => CSS ) )

*** print_r vs var_dump ***

Using print_r: Array ( [0] => apple [1] => banana [2] => cherry ) Using var_dump: array(3) { [0]=> string(5) "apple" [1]=> string(6) "banana" [2]=> string(6) "cherry" }


*** global variable ***

10

20

20
string(13) "Original page"

Original page


Original page Original page - lisbonseller

Modified page


Original ipsum dolor sit amet, consectetur adipiscing elit. Aliquam nec imperdiet nisi. Donec nibh augue, varius sed libero at, placerat scelerisque neque. Etiam pellentesque tempus diam, eu semper nisi tincidunt eu. Sed a sagittis sem. Suspendisse ullamcorper, arcu at malesuada scelerisque, lectus tellus commodo elit, ut auctor massa nunc at tortor. Quisque facilisis tortor quis diam placerat, sed blandit enim volutpat. Proin lorem felis, lacinia sit amet tempus id, finibus blandit lorem. Phasellus lacinia facilisis pretium. Sed pellentesque arcu non justo ultrices placerat. Proin faucibus velit aliquam scelerisque placerat. Maecenas at mollis augue. Sed imperdiet nulla sapien, gravida elementum nunc pulvinar quis. Praesent eu rhoncus neque. Aliquam sodales placerat ultrices.

Hello, World!

Praesent tempor augue sit amet justo varius, at sollicitudin libero interdum. Suspendisse sodales commodo magna. Curabitur nec nunc quis dolor accumsan ullamcorper in nec tortor. Donec posuere sem ex, porta suscipit ligula fringilla varius. Suspendisse lacinia cursus magna, a dapibus dui fermentum eget. Maecenas eu urna sit amet dolor commodo venenatis at ac dolor. Duis fringilla velit at ante luctus, vel egestas lectus suscipit. Duis consectetur a mauris eu facilisis. Suspendisse posuere cursus viverra. Fusce vel cursus orci. Mauris ut sapien ut elit mattis congue ac sit amet dolor. Pellentesque molestie nisi bibendum augue placerat varius. Sed lacinia ante non lacinia sodales. Cras justo ligula, convallis at nunc eu, dictum aliquam erat. Aenean quis dolor nec urna pellentesque ultrices.

Aenean ante odio, cursus a erat vel, blandit viverra eros. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Integer ultrices tempus metus, ut viverra mi mattis eget. Proin faucibus lobortis ante, vel rhoncus odio efficitur ut. Etiam id vulputate neque, nec fringilla orci. Proin condimentum rhoncus ligula, et tincidunt ante sagittis et. Mauris iaculis dictum dui, id venenatis sem facilisis ut. Nullam ut tortor quis dolor consequat ultricies at quis sem. Proin imperdiet magna mauris, et ornare sem semper nec. Aliquam erat volutpat.

Maecenas sapien dolor, placerat eget ipsum sed, ultricies aliquet arcu. Vestibulum vel elit posuere, lacinia lacus vitae, dignissim nibh. Nulla a feugiat felis. Etiam sodales sit amet magna et porta. Fusce mollis, enim vel bibendum pulvinar, risus metus volutpat metus, nec convallis magna odio quis enim. Cras ut faucibus risus, ut gravida dolor. Proin euismod ullamcorper turpis ac commodo. Suspendisse id nulla scelerisque, condimentum ex sit amet, blandit ante. Maecenas finibus magna arcu, efficitur finibus justo lobortis sit amet. Praesent lorem lacus, lobortis vel sapien vitae, porttitor tincidunt est. Etiam nec blandit odio. Ut condimentum, orci in convallis ornare, justo leo tempus ipsum, et egestas augue nibh id erat. Quisque consequat malesuada libero, ut varius justo convallis eu.

Praesent volutpat enim erat, at dictum enim elementum id. In hac habitasse platea dictumst. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vel libero in turpis tristique lacinia elementum non ligula. Nulla lacinia neque diam, et mattis odio ornare ac. Etiam consequat purus in orci bibendum, vel cursus ipsum pellentesque. Sed nec tellus non felis euismod imperdiet efficitur nec purus. Vestibulum elementum libero sed cursus vestibulum. Aliquam placerat dolor nec convallis pretium.