Sometimes when you make many functions in your PHP scripts. Then you need to check the real existence of the function you need. That’s why to check a function’s existence, you can write a little piece of code like the following: <?php if(function_exists(NameOfTheFunction)) { echo "Function Exist"; } else { echo "Function doesn't exist"; } ?> NameOfTheFunction means your function's name. If your function is LoginCheck(). Then you need to write only LoginCheck. Just omitt the () symbol. If it …
Tag: PHP
To write values or text in a .txt file you can follow the following process in PHP. <?php function test_function () { return ?"Hello!"; } $function_contents = test_function (); $file_name = "test_file.txt"; $file_handle = fopen($file_name, 'w'); fwrite($file_handle, $function_contents); fclose($file_handle); ?> It will make a text file named test_file.txt and in that file this PHP code snippet will write ‘Hello’. Thanks
Still finding some solution or idea that can be useful for online campaign management for any small company. I am still finding for my own company. May be I will go forward to build this system myself. But it’s new to me. Need idea. I am searching for the solution and gathering experience to make that more professional. [adsense_id=”4″] [adsense_id=”2″]