Answers for "convert to text php"

PHP
1

php convert to string

<?php
class StrValTest
{
    public function __toString()
    {
        return __CLASS__;
    }
}

// Prints 'StrValTest'
echo strval(new StrValTest);
?>
Posted by: Guest on April-02-2020
0

convert to text php

<?php
require 'flag.php';
if (isset($_POST['password'])) {
    if (strcmp($_POST['password'], $flag) == 0)
    echo('<h1><div class="alert alert-success centered" role="alert"> Flag: '.$flag.' </div></h1>');
    else
    echo('<h1><div class="alert alert-danger centered" role="alert">Sorry, Wrong password!</div></h1>');
die;
}
?>
Posted by: Guest on August-05-2021

Code answers related to "convert to text php"

Browse Popular Code Answers by Language