• 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

How to create a individual template for page or post in custom plugin?

Json_Encode not returning html even i try to encode JSON_HEX_QUOT | JSON_HEX_TAG

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

how to sort by a custom appended relation to model

Getting values for an enum?

protect images from being copied

Add record for each array elements if missing in table

Laravel Nova Dependency Container what are the allowed resource properties other than id in dependsOn

Using array_intersect on a multi-dimensional array

Laravel Sanctum CSRF not authenticating

php 7 php.ini upload_max_filesize not working

"There is no active transaction" when refreshing database in Laravel 8.0 test

Toggle between a textbox and a select using PHP

How to convert a carbon into string, to take the date only?

Prestashop webservice API creating cart rules

About Contact Privacy policy Terms and conditions