+ 2

What is the use of this functin

function test_input($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data;

8th Apr 2018, 7:26 AM
Shivani Rajendra Nannor
Shivani Rajendra  Nannor - avatar
5 Answers
+ 2
This function takes some data, removes any trailing spaces at the beginning or the end of the input, removes any backslashes, and finally converts special characters into their respective HTML value.
8th Apr 2018, 7:43 AM
CHMD
CHMD - avatar
+ 1
This function is used for get input from users
8th Apr 2018, 7:28 AM
Shivani Rajendra Nannor
Shivani Rajendra  Nannor - avatar
+ 1
This is the php language
8th Apr 2018, 7:34 AM
Shivani Rajendra Nannor
Shivani Rajendra  Nannor - avatar
+ 1
This function is used for get input from users
8th Apr 2018, 3:41 PM
Anthony Readus
Anthony Readus - avatar
0
This is not Java, nor C++, not Ruby? Umm.. Which language is this??? đŸ€”đŸ€”đŸ€”
8th Apr 2018, 7:29 AM
Uttam
Uttam - avatar