Issues of UTF-8 Encode Keyword

| By Webner

<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″> <?php echo utf8_decode(“selecciona una categoría”);?> Above two lines are used to decode the special characters properly. We use the meta tag in section of the page to decode the whole page and second line of PHP

PHP | Sorting Complex Multidimensional Array

| By Webner

Suppose we have a complex array like below: $products = array( array( ‘product’ => array(‘id’ => 1, ‘name’ => ‘Jquery tutorial book’), ‘product_details’ => array(‘cost’ => 10, ‘edition’ => ‘first’) ), array( ‘product’ => array(‘id’ => 2, ‘name’ => ‘javascript

iOS | How to get installed app package names

| By Webner

Here is the code to get names of app package installed on iOS devices: include objc/ runtime.h in your viewController.m include <objc/runtime.h> – (void)GetInstalledApps { Class LSApplicationWorkspace_class = objc_getClass(“LSApplicationWorkspace”); NSObject* workspace = [LSApplicationWorkspace_class performSelector:@selector(defaultWorkspace)]; NSArray *array = [workspace performSelector:@selector(allApplications)]; NSMutableString