Skip to content

Display option data with php and hide the similiar

I’m using php to select data from my database. I’m displaying it in a HTML select option tag. I have 100+ options and I want to hide which is the same as my selected data. For example: For example the $type variable is “c”. So it displays the option “c” twice. How can I eas…

use call_user_func in PHP 8 returns fatal error

I am trying to call a class named ContactController with the function handleContact with call_user_func([ContactController::class, ‘handleContact’]); but got following error: Fatal error: Uncaught Error: Non-static method appcontrollersContactController::handleContact() cannot be called statically…