check tags if opened or not in php | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

check tags if opened or not in php

write a function which takes '(){}' as a parameter and checks if tags is opened or not it return true if (){} or any tags is closed and return false if tags are opened like this {{() or {))))) .please help

17th Sep 2022, 2:01 AM
Sara Ali
Sara Ali - avatar
1 Answer
+ 1
hint : use stack ... or show your attempt
17th Sep 2022, 4:12 AM
Prashanth Kumar
Prashanth Kumar - avatar