Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
PHP
/
Magic methods
A class defines both __serialize() and __sleep(). Which hook does serialize() use on PHP …
from Magic methods
PHP 8.3.33
intermediate
1 min
A class defines both __serialize() and __sleep(). Which hook does serialize() use on PHP 8.3?
__serialize() only
__sleep() only
__sleep() followed by __serialize()
Neither; defining both is a syntax error.
Check
Ask AI about this kata
Report an error
previous kata
Review generated order proxy
Review AI code
next kata
Spot the bug in proxy forwarding
Spot the bug
A new version is available
Reload