Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

boolean to string php

echo json_encode(true);  // string "true"

echo json_encode(false); // string "false"

// null !== false
echo json_encode(null);  // string "null"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #boolean #string #php
ADD COMMENT
Topic
Name
2+7 =