Tag : Convert


Laravel 5 - How to convert file(image, audio, video) extension using CloudConvert?

We may sometimes require to convert file extension like if you have video type mov or flv or 3gp etc and you should have to convert it into mp4, OR if you have image type png, jpeg, gif and require to convert it into jpj, Same as for audio mp3, then all the thing you can do using CloudConvert API. you can also convert pdf into jpg using CloudConvert API. In this example i use CloudConvert API with Laravel. CloudConvert is a very popular API for convert file extensions. So in this example i used CloudConvert API for any video extension convert into mp4. you can also convert anything as you wan.....

By Hardik Savani | July 13, 2016 | | 8713 Viewer | Category : Laravel
READ MORE

How to convert array key to lowercase in PHP?

Whenever you require to create all array key in lowercase then you can create that without using loop. you have to just use array_change_key_case(), array_change_key_case function take two argument one for array and second one for php function "CASE_LOWER". May be we need to do this when we are working on big projects and need to all key in small case. So, how to convert array values to lowercase using array_change_key_case(), see bellow example and learn how to work. <strong class="example">Example:</strong> <pre class="prettyprint lang-php"> $myArray = ['Hey'=>'Hey','HELLO'=>'Hello','hi'=>'.....

By Hardik Savani | April 6, 2016 | | 700 Viewer | Category : PHP
READ MORE

How to convert array values to lowercase in PHP?

Whenever you require to create all array value in lowercase then you can create that without using loop. you have to just use array_map(), array_map function take two argument one for php function "strtolower" and second one for array. May be we need to do this when we are working on big projects and need to all values in small case. So, how to convert array values to lowercase using array_map(), see bellow example and learn how to work. <strong class="example">Example:</strong> <pre class="prettyprint lang-php"> $myArray = ['1'=>'Hey','2'=>'Hello','3'=>'Hi','4'=>'GM']; $result = array_map('s.....

By Hardik Savani | April 5, 2016 | | 735 Viewer | Category : PHP
READ MORE

How to convert Object into Array in PHP?

Whenever you need to convert object to array in your php project then you can do that using (array). It is a pretty simple example to convert php object into array that way you can use array. So, let's see the following example. <strong class="example">Example:</strong> <pre class="prettyprint lang-php"> $myObject = new MyClass; $myObject->id = 100; $myObject->title = "posts"; $myObject->description = "this is posts"; $newArray = (array) $myObject; print_r($newArray); </pre>

By Hardik Savani | March 25, 2016 | | 970 Viewer | Category : PHP
READ MORE

    Jquery - Animated typing effect using typed js example with demo

    Jquery - Animated typing effect using typed js example with demo

    Open Post

    Laravel 5 dropbox api file upload example using league/flysystem-dropbox package

    Laravel 5 dropbox api file upload example using league/flysystem-dropbox package

    Open Post

    CRUD (Create Read Update Delete) Example in Laravel 5.2 from Scratch

    CRUD (Create Read Update Delete) Example in Laravel 5.2 from Scratch

    Open Post

    Laravel 5 create custom artisan command with example

    Laravel 5 create custom artisan command with example

    Open Post

    Laravel 5 - Multiple Images Uploading using dropzone.js example with demo

    Laravel 5 - Multiple Images Uploading using dropzone.js example with demo

    Open Post

    Codeigniter JQuery Ajax image upload example from scratch

    Codeigniter JQuery Ajax image upload example from scratch

    Open Post