A PHP Error was encountered

Severity: Warning

Message: fopen(/tmp/ci_session33133f4e3851ba7af93296d2fece5a15): failed to open stream: Disk quota exceeded

Filename: drivers/Session_files_driver.php

Line Number: 156

Backtrace:

File: /home/s949hbuup34l/public_html/webphplearn.com/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_start(): Failed to read session data: user (path: /tmp)

Filename: Session/Session.php

Line Number: 140

Backtrace:

File: /home/s949hbuup34l/public_html/webphplearn.com/index.php
Line: 292
Function: require_once

Important php array functions
Apply for Zend Framework Certification Training

Corephp




 1)  stristr() 
IT find the first occurrence of "top" inside "who is on top", and return the rest of the string:

<?php
echo stristr("who is on top","top");
?>
returnns top

2)    array_walk_recursive()

The work of  array_walk_recursive() function runs each array
element in a user-defined function. The array's keys and values 
are parameters in the function.


<?php
$vehical = array('c' => 'car', 'b' => 'bike');
$second = array('vehical' => $vehical, 'big' => 'Truck');

function print_vehical($key, $value)
{
    echo "$value runs on  $key\n";
}

array_walk_recursive($second, 'print_vehical');
?>
                                    

< how to connect multiple databases in codeigniter Sorting array value in php without using built in function >



Ask a question



  • Question:
    {{questionlistdata.blog_question_description}}
    • Answer:
      {{answer.blog_answer_description  }}
    Replay to Question


Back to Top