Remove index.php file in codeigniter OR wordpress on windows server

Remove index.php file in Codeigniter or wordpress or other freamwork  on Windows IIS7 Server Sometime .htaccess file does not work on windows server, so we have use web.config file insted of .htaccess in root path   <?xml version=”1.0″ encoding=”UTF-8″?> <configuration> <system.webServer> <rewrite> <rules> <rule name=”codeigniter” patternSyntax=”Wildcard”> <match url=”*”/> <conditions> <add input=”{REQUEST_FILENAME}” matchType=”IsFile” negate=”true”/> <add input=”{REQUEST_FILENAME}” matchType=”IsDirectory” negate=”true”/> </conditions>…

Convert stdClass object to array in pHp

Object to array convert in php For e.g Array ( [0] => stdClass Object ( [user_id] => 10 ) [1] => stdClass Object ( [user_id] => 20 ) ) Convert into array Array ( [0] => 10 [1] => 20 ) $array = json_decode(json_encode($object),true);