• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

How to convert binary string to normal string in php

phpstringlaravelencodingutf-8


PHP Snippet 1:

if(!mb_check_encoding($string)) {
    $string = iconv("LATIN1", "UTF-8//TRANSLIT//IGNORE", $string);
}

Related Snippets

Store multiple fields in JSON column (Nova CMS)

Submitting a form with ajax in Wordpress

Substitute integers and dots with regex [duplicate]

Store multiple fields in JSON column (Nova CMS)

PHP and WebView - Cookie doesn't are the same

Display the default discounted price and percentage on Woocommerce products

Edit product hook WooCommerce

I want to display a sweetalert after the inserting of data in my database

Issue with laravel eloquent model property

PHPExcel How to set conditional formatting to change cell background color based on cells values

Laravel Blade checkbox not checked

Attempted to call an undefined method named "get" of class "MailController"

PHP password_verify

get attribute from class not working php 7

Laravel 5.2: Unable to locate factory with name [default]

About Contact Privacy policy Terms and conditions