Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php base64

$base_string = base64_encode("your-string"); //for base64 encoding
echo base64_decode($base_string); //for base64 decoding
Comment

php detect base64 encoding

function is_base64_encoded($data)
{
    if (preg_match('%^[a-zA-Z0-9/+]*={0,2}$%', $data)) {
       return TRUE;
    } else {
       return FALSE;
    }
};

is_base64_encoded("iash21iawhdj98UH3"); // true
is_base64_encoded("#iu3498r"); // false
is_base64_encoded("asiudfh9w=8uihf"); // false
is_base64_encoded("a398UIhnj43f/1!+sadfh3w84hduihhjw=="); // false
Comment

base64 enocode php

<?php
$str = 'VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw==';
echo base64_decode($str);
?>
Comment

PREVIOUS NEXT
Code Example
Php :: Variable "$id" is not defined by operation "GetPost". 
Php :: describe request php-salesforce-rest-api 
Php :: HOW TO CREATE AUTO ALPHA NUMERIC PRIMARY KEY BY PHP 
Php :: MethodNotAllowedHttpException 
Php :: how to explode results from multi select form submitted 
Php :: nested attributes - PHP 8.1 
Php :: Laravel: validate an integer field that needs to be greater than another 
Php :: laravel make request 
Php :: PHP DocBlocker current date 
Php :: auto complete order paid2 
Php :: php random number routing 
Php :: laravel get polymorphic names 
Php :: How do I output top readers from MySql table 
Php :: Régler l’enregistrement automatique dans WordPress 
Php :: bsljeet 
Php :: Get page title, excerpt or content by Name of the Page 
Php :: Hide products only show assigned products to certain user roles in WooCommerce 
Php :: check input value is not empty or spaced php 
Php :: supprimer un cookie avec un input en php 
Php :: Comment désactiver la barre latérale Widgets sur des pages spécifiques WordPress 
Php :: PHP stripslashes — Un-quotes a quoted string 
Php :: orWhereRaw 
Php :: laravel helper functions 
Php :: how to create a modal in php 
Php :: laravel query 
Php :: last insert id in laravel 
Php :: serialise php 
Php :: 12 hrs for preg match with single and double digit in php 
Java :: Cannot resolve class android.support.design.widget.CoordinatorLayout 
Java :: setting up javafx in eclipse vm argument 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =